fundingmanager+lnwallet: add HTLC dust limit logic

This commit is contained in:
Andrey Samokhvalov authored and Olaoluwa Osuntokun committed 2016-12-13 11:01:57 -08:00
1 parent c731156ac8
commit d01f1b5ff4
9 files changed
+188 -35

No files matched your search

+2 -2
View File
@@ -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)
}