lnwallet+test: no dust outputs in commitment transaction + tests
Currently non-HTLC outputs will be accepted in the commitment transaction as long as it is non-zero. We change this by not allowing outputs with a value lower than the dust limit. The value of such an output will go towards transaction fees.
This commit is contained in:
1 parent
9665bb7e54
commit
52b56b8cf2
5 files changed
+95
-13
No files matched your search
@@ -54,7 +54,7 @@ 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)
|
||||
bobKeyPub, revokePubKey, csvTimeout, channelBalance, channelBalance, 540)
|
||||
if err != nil {
|
||||
t.Fatalf("unable to create commitment transaction: %v", nil)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user