2016-12-06 15:03:14 +01:00
|
|
|
package lnwallet
|
|
|
|
|
|
|
|
import (
|
2018-06-05 03:34:16 +02:00
|
|
|
"github.com/btcsuite/btcutil"
|
|
|
|
"github.com/btcsuite/btcwallet/wallet/txrules"
|
2019-01-16 15:47:43 +01:00
|
|
|
"github.com/lightningnetwork/lnd/input"
|
2016-12-06 15:03:14 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
// DefaultDustLimit is used to calculate the dust HTLC amount which will be
|
2016-12-06 15:05:46 +01:00
|
|
|
// send to other node during funding process.
|
2016-12-06 15:03:14 +01:00
|
|
|
func DefaultDustLimit() btcutil.Amount {
|
2019-01-16 15:47:43 +01:00
|
|
|
return txrules.GetDustThreshold(input.P2WSHSize, txrules.DefaultRelayFeePerKb)
|
2016-12-06 15:03:14 +01:00
|
|
|
}
|