mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-01-25 16:53:11 +00:00
more debug logging
This commit is contained in:
parent
58a97856b4
commit
a74e657515
@ -83,6 +83,7 @@ template cancelOnError*(market: Market, body) =
|
||||
try:
|
||||
body
|
||||
except JsonRpcProviderError as e:
|
||||
echo "[market.cancelOnError] error encountered -- nonce: ", nonce
|
||||
if e.nonce.isSome:
|
||||
# send a 0-valued transaction with the errored nonce to prevent stuck txs
|
||||
await market.cancelTransaction(!e.nonce)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user