mirror of
https://github.com/lightningnetwork/lnd.git
synced 2024-11-19 18:10:34 +01:00
9e012ecc93
This commit is a step to split the lnwallet package. It puts the Input interface and implementations in a separate package along with all their dependencies from lnwallet.
14 lines
395 B
Go
14 lines
395 B
Go
package lnwallet
|
|
|
|
import (
|
|
"github.com/btcsuite/btcutil"
|
|
"github.com/btcsuite/btcwallet/wallet/txrules"
|
|
"github.com/lightningnetwork/lnd/input"
|
|
)
|
|
|
|
// DefaultDustLimit is used to calculate the dust HTLC amount which will be
|
|
// send to other node during funding process.
|
|
func DefaultDustLimit() btcutil.Amount {
|
|
return txrules.GetDustThreshold(input.P2WSHSize, txrules.DefaultRelayFeePerKb)
|
|
}
|