fundingmanager+lnwallet: add HTLC dust limit logic
This commit is contained in:
1 parent
c731156ac8
commit
d01f1b5ff4
9 files changed
+188
-35
No files matched your search
@@ -1,12 +1,12 @@
|
||||
package lnwallet
|
||||
|
||||
import (
|
||||
"github.com/roasbeef/btcwallet/wallet/txrules"
|
||||
"github.com/roasbeef/btcutil"
|
||||
"github.com/roasbeef/btcwallet/wallet/txrules"
|
||||
)
|
||||
|
||||
// DefaultDustLimit is used to calculate the dust HTLC amount which will be
|
||||
// proposed to other node during channel creation.
|
||||
// send to other node during funding process.
|
||||
func DefaultDustLimit() btcutil.Amount {
|
||||
return txrules.GetDustThreshold(P2WSHSize, txrules.DefaultRelayFeePerKb)
|
||||
}
|
||||
Reference in new issue
Block a user