moar debugging
This commit is contained in:
parent
9fe0f2ae81
commit
2ab9034c12
|
@ -84,6 +84,7 @@ template cancelOnError*(market: Market, body) =
|
|||
body
|
||||
except JsonRpcProviderError as e:
|
||||
trace "error encountered, cancelling tx if there's a nonce present", nonce = e.nonce, error = e.msg
|
||||
writeStackTrace()
|
||||
if e.nonce.isSome:
|
||||
# send a 0-valued transaction with the errored nonce to prevent stuck txs
|
||||
await market.cancelTransaction(!e.nonce)
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 0897a6c3383cf4b6fcd3e7562c5ca15a02a21b22
|
||||
Subproject commit 91eabaa67ad4d121fa37036143ba04feb1d2c21a
|
Loading…
Reference in New Issue