Set opt_anchors for calls to CommitmentTransaction::new_with_auxiliary_htlc_data
authorKen Sedgwick <ken@bonsai.com>
Thu, 13 Jan 2022 01:10:07 +0000 (17:10 -0800)
committerKen Sedgwick <ken@bonsai.com>
Thu, 13 Jan 2022 23:01:31 +0000 (15:01 -0800)
lightning/src/ln/functional_tests.rs

index f4cf646a704025d50e3bff6d0fed54bd5a77f2e3..fe67188f280f317345384c1b83e588ed47304606 100644 (file)
@@ -724,7 +724,7 @@ fn test_update_fee_that_funder_cannot_afford() {
                        INITIAL_COMMITMENT_NUMBER - 1,
                        push_sats,
                        channel_value - push_sats - commit_tx_fee_msat(non_buffer_feerate + 4, 0, opt_anchors) / 1000,
-                       false, local_funding, remote_funding,
+                       opt_anchors, local_funding, remote_funding,
                        commit_tx_keys.clone(),
                        non_buffer_feerate + 4,
                        &mut htlcs,
@@ -1460,7 +1460,7 @@ fn test_fee_spike_violation_fails_htlc() {
                        commitment_number,
                        95000,
                        local_chan_balance,
-                       false, local_funding, remote_funding,
+                       local_chan.opt_anchors(), local_funding, remote_funding,
                        commit_tx_keys.clone(),
                        feerate_per_kw,
                        &mut vec![(accepted_htlc_info, ())],