leave inputs for rejected tx reserved
This commit is contained in:
parent
5de944146a
commit
17f76c9cb3
1 changed files with 3 additions and 0 deletions
|
@ -302,6 +302,9 @@ class WalletManager:
|
||||||
await self.ledger.broadcast(tx)
|
await self.ledger.broadcast(tx)
|
||||||
if blocking:
|
if blocking:
|
||||||
await self.ledger.wait(tx, timeout=None)
|
await self.ledger.wait(tx, timeout=None)
|
||||||
|
except CodeMessageError as err:
|
||||||
|
log.warning("transaction rejected, leaving reserved")
|
||||||
|
raise
|
||||||
except:
|
except:
|
||||||
await self.ledger.release_tx(tx)
|
await self.ledger.release_tx(tx)
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in a new issue