forked from LBRYCommunity/lbry-sdk
leave reservations for rejected transactions
This commit is contained in:
parent
be5f6491bc
commit
b66281eabc
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue