@@ -10596,17 +10596,21 @@ fn test_disconnect_in_funding_batch() {
1059610596	nodes[0].node.peer_disconnected(&nodes[2].node.get_our_node_id());
1059710597
1059810598	// 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();
1060110603	check_closed_events(&nodes[0], &[
1060210604		ExpectedCloseEvent {
1060310605			channel_id: Some(channel_id_1),
1060410606			discard_funding: true,
10607+ 			channel_funding_txo: Some(funding_txo_1),
1060510608			..Default::default()
1060610609		},
1060710610		ExpectedCloseEvent {
1060810611			channel_id: Some(channel_id_2),
1060910612			discard_funding: true,
10613+ 			channel_funding_txo: Some(funding_txo_2),
1061010614			..Default::default()
1061110615		},
1061210616	]);
@@ -10664,8 +10668,10 @@ fn test_batch_funding_close_after_funding_signed() {
1066410668	assert_eq!(nodes[0].tx_broadcaster.txn_broadcast().len(), 0);
1066510669
1066610670	// 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();
1066910675	nodes[0].node.force_close_broadcasting_latest_txn(&channel_id_1, &nodes[1].node.get_our_node_id()).unwrap();
1067010676	check_added_monitors(&nodes[0], 2);
1067110677	{
@@ -10697,11 +10703,13 @@ fn test_batch_funding_close_after_funding_signed() {
1069710703		ExpectedCloseEvent {
1069810704			channel_id: Some(channel_id_1),
1069910705			discard_funding: true,
10706+ 			channel_funding_txo: Some(funding_txo_1),
1070010707			..Default::default()
1070110708		},
1070210709		ExpectedCloseEvent {
1070310710			channel_id: Some(channel_id_2),
1070410711			discard_funding: true,
10712+ 			channel_funding_txo: Some(funding_txo_2),
1070510713			..Default::default()
1070610714		},
1070710715	]);
0 commit comments