Skip to content

Commit 4c829f4

Browse files
committed
Fix monitor_tests warnings.
1 parent 9d5a386 commit 4c829f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lightning/src/ln/monitor_tests.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2183,19 +2183,19 @@ fn do_test_claimable_balance_correct_while_payment_pending(outbound_payment: boo
21832183
],
21842184
};
21852185
if anchors {
2186-
nodes[0].wallet_source.add_utxo(bitcoin::OutPoint { txid: coinbase_tx.txid(), vout: 0 }, coinbase_tx.output[0].value);
2187-
nodes[1].wallet_source.add_utxo(bitcoin::OutPoint { txid: coinbase_tx.txid(), vout: 1 }, coinbase_tx.output[1].value);
2186+
nodes[0].wallet_source.add_utxo(bitcoin::OutPoint { txid: coinbase_tx.compute_txid(), vout: 0 }, coinbase_tx.output[0].value);
2187+
nodes[1].wallet_source.add_utxo(bitcoin::OutPoint { txid: coinbase_tx.compute_txid(), vout: 1 }, coinbase_tx.output[1].value);
21882188
}
21892189

21902190
// Create a channel from A -> B
21912191
let (_, _, chan_ab_id, funding_tx_ab) =
21922192
create_announced_chan_between_nodes_with_value(&nodes, 0, 1, 1_000_000 /* channel_value (sat) */, 0 /* push_msat */);
2193-
let funding_outpoint_ab = OutPoint { txid: funding_tx_ab.txid(), index: 0 };
2193+
let funding_outpoint_ab = OutPoint { txid: funding_tx_ab.compute_txid(), index: 0 };
21942194
assert_eq!(ChannelId::v1_from_funding_outpoint(funding_outpoint_ab), chan_ab_id);
21952195
// Create a channel from B -> C
21962196
let (_, _, chan_bc_id, funding_tx_bc) =
21972197
create_announced_chan_between_nodes_with_value(&nodes, 1, 2, 1_000_000 /* channel_value (sat) */, 0 /* push_msat */);
2198-
let funding_outpoint_bc = OutPoint { txid: funding_tx_bc.txid(), index: 0 };
2198+
let funding_outpoint_bc = OutPoint { txid: funding_tx_bc.compute_txid(), index: 0 };
21992199
assert_eq!(ChannelId::v1_from_funding_outpoint(funding_outpoint_bc), chan_bc_id);
22002200

22012201
let (chan_feerate, channel_type_features) = if outbound_payment {

0 commit comments

Comments
 (0)