leave inputs for rejected tx reserved

This commit is contained in:
Jack Robison 2020-06-04 10:19:54 -04:00
parent 5de944146a
commit 17f76c9cb3
No known key found for this signature in database
GPG key ID: DF25C68FE0239BB2

View file

@ -302,6 +302,9 @@ class WalletManager:
await self.ledger.broadcast(tx)
if blocking:
await self.ledger.wait(tx, timeout=None)
except CodeMessageError as err:
log.warning("transaction rejected, leaving reserved")
raise
except:
await self.ledger.release_tx(tx)
raise