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"
|
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 {
|
|
|
|
return txrules.GetDustThreshold(P2WSHSize, txrules.DefaultRelayFeePerKb)
|
|
|
|
}
|