This commit is contained in:
Peter D. Gray 2025-03-27 11:21:55 -04:00
parent 16753f7418
commit 66874de399
No known key found for this signature in database
GPG Key ID: A2DCD558C2BE5D7C

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)