lnwallet: use DefaultDustLimit() instead of hard-coded values

This commit is contained in:
Christopher Jämthagen authored and Olaoluwa Osuntokun committed 2017-03-09 15:32:31 -08:00
1 parent 810d8c286e
commit 242c656fd6
2 files changed
+16 -10

No files matched your search

+2 -1
View File
@@ -54,7 +54,8 @@ func TestCommitmentSpendValidation(t *testing.T) {
// of 5 blocks before sweeping the output, while bob can spend
// immediately with either the revocation key, or his regular key.
commitmentTx, err := CreateCommitTx(fakeFundingTxIn, aliceKeyPub,
bobKeyPub, revokePubKey, csvTimeout, channelBalance, channelBalance, 540)
bobKeyPub, revokePubKey, csvTimeout, channelBalance,
channelBalance, DefaultDustLimit())
if err != nil {
t.Fatalf("unable to create commitment transaction: %v", nil)
}