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

This commit is contained in:
Christopher Jämthagen
2017-02-22 11:11:34 +01:00
committed by Olaoluwa Osuntokun
parent 810d8c286e
commit 242c656fd6
2 changed files with 16 additions and 10 deletions

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)
}