Skip to content

Commit

Permalink
Fix bug when tx was already imported by node
Browse files Browse the repository at this point in the history
  • Loading branch information
Uxio0 committed Dec 14, 2018
1 parent 67b3156 commit 70b34d6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions safe_relay_service/relay/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,11 @@ def deploy_safes_task(retry: bool=True) -> None:
safe_funding.safe_deployed_tx_hash = creation_tx_hash
safe_funding.save()
except TransactionAlreadyImported:
logger.warning("Safe=%s transaction was already imported by the node")
return
logger.warning("Safe=%s transaction was already imported by the node", safe_address)
safe_funding.safe_deployed_tx_hash = safe_creation.tx_hash
safe_funding.safe_deployed = False
safe_funding.save()
continue
except ValueError:
# Usually "ValueError: {'code': -32000, 'message': 'insufficient funds for gas * price + value'}"
# A reorg happened
Expand Down
2 changes: 1 addition & 1 deletion safe_relay_service/version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
__version__ = '2.3.2'
__version__ = '2.3.3'
__version_info__ = tuple([int(num) if num.isdigit() else num for num in __version__.replace('-', '.', 1).split('.')])

0 comments on commit 70b34d6

Please sign in to comment.