mirror of
https://github.com/codex-storage/nim-codex.git
synced 2025-02-01 15:45:06 +00:00
add more debugging
This commit is contained in:
parent
52e61a0c58
commit
0365ddc0eb
@ -83,7 +83,7 @@ template cancelOnError*(market: Market, body) =
|
||||
try:
|
||||
body
|
||||
except JsonRpcProviderError as e:
|
||||
echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce
|
||||
echo "[market.cancelOnError] error encountered -- nonce: ", e.nonce, ", error: ", e.msg
|
||||
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