aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMarcoFalke <falke.marco@gmail.com>2021-06-04 15:05:57 +0200
committerMarcoFalke <falke.marco@gmail.com>2021-06-04 15:05:27 +0200
commitfaa94961d6e38392ba068381726ed4e033367b03 (patch)
tree615d662ad45a5931ac10238d1630c1c4d258ce4a /test
parent346e52afd6d5e317c96fc506bb54cde13e87c8b2 (diff)
downloadbitcoin-faa94961d6e38392ba068381726ed4e033367b03.tar.xz
test: Add temporary logging to debug #20975
Diffstat (limited to 'test')
-rw-r--r--test/functional/test_framework/blocktools.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/test_framework/blocktools.py b/test/functional/test_framework/blocktools.py
index e91b44e776..f35ea6c122 100644
--- a/test/functional/test_framework/blocktools.py
+++ b/test/functional/test_framework/blocktools.py
@@ -181,6 +181,11 @@ def create_raw_transaction(node, txid, to_address, *, amount):
signed_psbt = wrpc.walletprocesspsbt(psbt)
psbt = signed_psbt['psbt']
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']