Merge 3c393ef9e1 into merged_master (Bitcoin PR bitcoin/bitcoin#22149)

This commit is contained in:
Andrew Poelstra 2021-07-23 00:28:01 +00:00
commit fcc12d7e2a

View file

@ -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']