leave reservations for rejected transactions

This commit is contained in:
Jack Robison 2020-05-19 19:15:14 -04:00
parent be5f6491bc
commit b66281eabc
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