diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py index f723f1d949..1d8be828fa 100644 --- a/test/functional/test_framework/blocktools.py +++ b/test/functional/test_framework/blocktools.py @@ -207,6 +207,11 @@ def create_raw_transaction(node, txid, to_address, *, amount, fee, locktime=0): except: pass final_psbt = node.finalizepsbt(psbt) + if not final_psbt["complete"]: + node.log.info(f'final_psbt={final_psbt}') + for w in node.listwallets(): + wrpc = node.get_wallet_rpc(w) + node.log.info(f'listunspent={wrpc.listunspent()}') assert_equal(final_psbt["complete"], True) return final_psbt['hex']