From 646fa1d028f091e281b7e9b0c45ca1040f4441d8 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Wed, 28 May 2025 10:59:10 -0400 Subject: [PATCH] test: fix sync function in rpc_psbt.py It currently only syncs between the first two nodes, which may do nothing when the block is created on the third node. Github-Pull: #32630 Rebased-From: 4df4df45d7bc2e8be99325d40cda936aab87c083 --- test/functional/rpc_psbt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/functional/rpc_psbt.py b/test/functional/rpc_psbt.py index 8042bdf0715..f1c83b869b1 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -79,7 +79,7 @@ class PSBTTest(BitcoinTestFramework): wallet = node.get_wallet_rpc(self.default_wallet_name) address = wallet.getnewaddress() wallet.sendtoaddress(address=address, amount=1.0) - self.generate(node, nblocks=1, sync_fun=lambda: self.sync_all(self.nodes[:2])) + self.generate(node, nblocks=1) utxos = wallet.listunspent(addresses=[address]) psbt = wallet.createpsbt([{"txid": utxos[0]["txid"], "vout": utxos[0]["vout"]}], [{wallet.getnewaddress(): 0.9999}])