@@ -10596,17 +10596,21 @@ fn test_disconnect_in_funding_batch() {
10596
10596
nodes[0].node.peer_disconnected(&nodes[2].node.get_our_node_id());
10597
10597
10598
10598
// The channels in the batch will close immediately.
10599
- let channel_id_1 = OutPoint { txid: tx.txid(), index: 0 }.to_channel_id();
10600
- let channel_id_2 = OutPoint { txid: tx.txid(), index: 1 }.to_channel_id();
10599
+ let funding_txo_1 = OutPoint { txid: tx.txid(), index: 0 };
10600
+ let funding_txo_2 = OutPoint { txid: tx.txid(), index: 1 };
10601
+ let channel_id_1 = funding_txo_1.to_channel_id();
10602
+ let channel_id_2 = funding_txo_2.to_channel_id();
10601
10603
check_closed_events(&nodes[0], &[
10602
10604
ExpectedCloseEvent {
10603
10605
channel_id: Some(channel_id_1),
10604
10606
discard_funding: true,
10607
+ channel_funding_txo: Some(funding_txo_1),
10605
10608
..Default::default()
10606
10609
},
10607
10610
ExpectedCloseEvent {
10608
10611
channel_id: Some(channel_id_2),
10609
10612
discard_funding: true,
10613
+ channel_funding_txo: Some(funding_txo_2),
10610
10614
..Default::default()
10611
10615
},
10612
10616
]);
@@ -10664,8 +10668,10 @@ fn test_batch_funding_close_after_funding_signed() {
10664
10668
assert_eq!(nodes[0].tx_broadcaster.txn_broadcast().len(), 0);
10665
10669
10666
10670
// Force-close the channel for which we've completed the initial monitor.
10667
- let channel_id_1 = OutPoint { txid: tx.txid(), index: 0 }.to_channel_id();
10668
- let channel_id_2 = OutPoint { txid: tx.txid(), index: 1 }.to_channel_id();
10671
+ let funding_txo_1 = OutPoint { txid: tx.txid(), index: 0 };
10672
+ let funding_txo_2 = OutPoint { txid: tx.txid(), index: 1 };
10673
+ let channel_id_1 = funding_txo_1.to_channel_id();
10674
+ let channel_id_2 = funding_txo_2.to_channel_id();
10669
10675
nodes[0].node.force_close_broadcasting_latest_txn(&channel_id_1, &nodes[1].node.get_our_node_id()).unwrap();
10670
10676
check_added_monitors(&nodes[0], 2);
10671
10677
{
@@ -10697,11 +10703,13 @@ fn test_batch_funding_close_after_funding_signed() {
10697
10703
ExpectedCloseEvent {
10698
10704
channel_id: Some(channel_id_1),
10699
10705
discard_funding: true,
10706
+ channel_funding_txo: Some(funding_txo_1),
10700
10707
..Default::default()
10701
10708
},
10702
10709
ExpectedCloseEvent {
10703
10710
channel_id: Some(channel_id_2),
10704
10711
discard_funding: true,
10712
+ channel_funding_txo: Some(funding_txo_2),
10705
10713
..Default::default()
10706
10714
},
10707
10715
]);
0 commit comments