From 4df4df45d7bc2e8be99325d40cda936aab87c083 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. --- 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 ba4105d9e63..9527053a6f7 100755 --- a/test/functional/rpc_psbt.py +++ b/test/functional/rpc_psbt.py @@ -83,7 +83,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}])