commit 9cd89f4a836822ac54f9b2c9b55a0fa8c49e9da4
parent b875386845a8f1b01434357088ddf7cb9dbe7bf9
Author: lash <dev@holbrook.no>
Date: Sun, 10 Apr 2022 16:45:58 +0000
Handle duplicate tx exception
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/chaind/eth/runnable/tasker.py b/chaind/eth/runnable/tasker.py
@@ -17,6 +17,7 @@ from chainqueue import (
Store,
Status,
)
+from chainqueue.error import DuplicateTxError
from chainqueue.store.fs import (
IndexStore,
CounterStore,
@@ -118,6 +119,7 @@ def main():
tx_hash = queue_adapter.put(r.hex())
except DuplicateTxError as e:
logg.error('tx already exists as {}'.format(e))
+ continue
except ValueError as e:
logg.error('adapter rejected input {}: "{}"'.format(r.hex(), e))
continue