Skip to content

Commit 6b9cf33

Browse files
committed
Wait for latest funding outpoint on close
After splicing, the original funding output is already spent, so waiting on it can race block generation with the force-close broadcast. Wait for the final splice outpoint to be spent instead. Co-Authored-By: HAL 9000
1 parent 19106b3 commit 6b9cf33

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tests/common/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ pub(crate) async fn do_channel_full_cycle<E: ElectrumApi>(
16891689
expect_event!(node_a, ChannelClosed);
16901690
expect_event!(node_b, ChannelClosed);
16911691

1692-
wait_for_outpoint_spend(electrsd, funding_txo_b).await;
1692+
wait_for_outpoint_spend(electrsd, splice_in_txo).await;
16931693

16941694
generate_blocks_and_wait(&bitcoind, electrsd, 1).await;
16951695
node_a.sync_wallets().unwrap();

0 commit comments

Comments
 (0)