This commit is contained in:
Peter D. Gray 2025-03-27 11:21:55 -04:00 committed by doc-hex
parent 8acb15e4ce
commit 2b88a14124

View File

@ -1000,7 +1000,7 @@ class ApproveTransaction(UserAuthorizedAction):
try:
# re-serialize the PSBT back out
with SFFile(TXN_OUTPUT_OFFSET, max_size=MAX_TXN_LEN, message="Saving...") as fd:
if self.do_finalize:
if self.do_finalize and self.psbt.is_complete():
txid = self.psbt.finalize(fd)
else:
self.psbt.serialize(fd)