]> git.bitcoin.ninja Git - rust-lightning/commitdiff
f
authorMatt Corallo <git@bluematt.me>
Tue, 14 Nov 2023 22:04:21 +0000 (22:04 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 14 Nov 2023 22:04:21 +0000 (22:04 +0000)
lightning/src/ln/monitor_tests.rs

index 7dfc7fba8e95014a99e129c652ed74aa6e67df1f..aa8b39cb60823446bace9ca8e7bb29ec26481298 100644 (file)
@@ -184,8 +184,8 @@ fn do_chanmon_claim_value_coop_close(anchors: bool) {
        let commitment_tx_fee = chan_feerate * chan_utils::commitment_tx_base_weight(&channel_type_features) / 1000;
        let anchor_outputs_value = if anchors { channel::ANCHOR_OUTPUT_VALUE_SATOSHI * 2 } else { 0 };
        assert_eq!(vec![Balance::ClaimableOnChannelClose {
-                       amount_satoshis: 1_000_000 - 1_000 - commitment_fee - anchor_outputs_value,
-                       transaction_fee_satoshis: commitment_fee,
+                       amount_satoshis: 1_000_000 - 1_000 - commitment_tx_fee - anchor_outputs_value,
+                       transaction_fee_satoshis: commitment_tx_fee,
                }],
                nodes[0].chain_monitor.chain_monitor.get_monitor(funding_outpoint).unwrap().get_claimable_balances());
        assert_eq!(vec![Balance::ClaimableOnChannelClose { amount_satoshis: 1_000, transaction_fee_satoshis: 0 }],