channeldb: add TheirDustLimit and OurDustLimit fields in OpenChannel
This commit is contained in:
1 parent
5a82240c6a
commit
202fce5501
3 files changed
+117
-9
No files matched your search
@@ -0,0 +1,12 @@
|
||||
package lnwallet
|
||||
|
||||
import (
|
||||
"github.com/roasbeef/btcwallet/wallet/txrules"
|
||||
"github.com/roasbeef/btcutil"
|
||||
)
|
||||
|
||||
// DefaultDustLimit is used to calculate the dust HTLC amount which will be
|
||||
// proposed to other node during channel creation.
|
||||
func DefaultDustLimit() btcutil.Amount {
|
||||
return txrules.GetDustThreshold(P2WSHSize, txrules.DefaultRelayFeePerKb)
|
||||
}
|
||||
Reference in new issue
Block a user