From 6b9cf33ed9cf66222f5dab8233347b5ae7f7f24a Mon Sep 17 00:00:00 2001 From: Leo Nash Date: Thu, 20 Aug 2026 00:27:38 +0000 Subject: [PATCH] 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 --- tests/common/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index 85f618c95..e07b32ac5 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -1689,7 +1689,7 @@ pub(crate) async fn do_channel_full_cycle( expect_event!(node_a, ChannelClosed); expect_event!(node_b, ChannelClosed); - wait_for_outpoint_spend(electrsd, funding_txo_b).await; + wait_for_outpoint_spend(electrsd, splice_in_txo).await; generate_blocks_and_wait(&bitcoind, electrsd, 1).await; node_a.sync_wallets().unwrap();