From: Ken Sedgwick Date: Thu, 13 Jan 2022 01:10:07 +0000 (-0800) Subject: Set opt_anchors for calls to CommitmentTransaction::new_with_auxiliary_htlc_data X-Git-Tag: v0.0.105~40^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=bee00124d2b5f36b6b2d8979cfc1c22e984b762c;p=rust-lightning Set opt_anchors for calls to CommitmentTransaction::new_with_auxiliary_htlc_data --- diff --git a/lightning/src/ln/functional_tests.rs b/lightning/src/ln/functional_tests.rs index f4cf646a7..fe67188f2 100644 --- a/lightning/src/ln/functional_tests.rs +++ b/lightning/src/ln/functional_tests.rs @@ -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, ())],