From 2578e6fc0f4af35f389cd8ff59825c874e0b72ac Mon Sep 17 00:00:00 2001 From: Fabian Jahr Date: Sat, 15 Nov 2025 23:53:34 +0200 Subject: [PATCH] test: Fix race condition in IPC interface block propagation test --- test/functional/interface_ipc.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/functional/interface_ipc.py b/test/functional/interface_ipc.py index 23036649529..75d340d5838 100755 --- a/test/functional/interface_ipc.py +++ b/test/functional/interface_ipc.py @@ -256,9 +256,11 @@ class IPCInterfaceTest(BitcoinTestFramework): assert_equal(res.result, True) self.log.debug("Block should propagate") - assert_equal(self.nodes[1].getchaintips()[0]["height"], current_block_height + 1) + # Check that the IPC node actually updates its own chain + assert_equal(self.nodes[0].getchaintips()[0]["height"], current_block_height + 1) # Stalls if a regression causes submitBlock() to accept an invalid block: self.sync_all() + # Check that the other node accepts the block assert_equal(self.nodes[0].getchaintips()[0], self.nodes[1].getchaintips()[0]) miniwallet.rescan_utxos()