2016-12-06 17:03:14 +03:00
|
|
|
package lnwallet
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/roasbeef/btcutil"
|
2016-12-06 17:05:46 +03:00
|
|
|
"github.com/roasbeef/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)
|
|
|
|
}
|