From 8454fb2bd74cd0e43b447dd8f49d388b8a25d2d7 Mon Sep 17 00:00:00 2001 From: shaurya2k06 Date: Fri, 14 Aug 2026 15:22:14 +0530 Subject: [PATCH] test: sync funding block before isolating nodes test_alternate_witness_tx mines the taproot funding output on node0 with sync_fun=self.no_op and immediately disconnects. node1 later includes the script-path spend via generateblock. If the funding block has not reached node1, that call fails with bad-txns-inputs-missingorspent. Drop the no_op so generate() uses the default sync_all before the partition. Signed-off-by: shaurya2k06 --- test/functional/wallet_listtransactions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/wallet_listtransactions.py b/test/functional/wallet_listtransactions.py index f48f0cfc52f..81c6133e375 100755 --- a/test/functional/wallet_listtransactions.py +++ b/test/functional/wallet_listtransactions.py @@ -283,7 +283,7 @@ class ListTransactionsTest(BitcoinTestFramework): desc = descsum_create(f"tr({xpubs[0].to_string()}/*,pk({xprvs[1].to_string()}/*))") assert_equal(wallet.importdescriptors([{"desc": desc, "active": True, "timestamp": "now"}])[0]["success"], True) default_wallet.sendtoaddress(wallet.getnewaddress(address_type="bech32m"), 1) - self.generate(self.nodes[0], 1, sync_fun=self.no_op) + self.generate(self.nodes[0], 1) # Isolate node0 for later reorg coverage self.disconnect_nodes(0, 1) self.disconnect_nodes(0, 2)