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