roller: don't crash if nonce not in queue

This commit is contained in:
yosoyubik 2021-12-09 07:44:53 +01:00
parent 463ca6e8db
commit ae05bbf571

View File

@ -1137,6 +1137,12 @@
:: print error if there was one
::
~? ?=(%| -.result) [dap.bowl %send-error +.p.result]
:: if this nonce was removed from the queue by a
:: previous resend-with-higher-gas thread, it's done
::
?. (has:ors:dice sending [address nonce])
~? lverb [dap.bowl %done-sending [address nonce]]
`state
=/ =send-tx (got:ors:dice sending [address nonce])
=? sending ?=(%& -.result)
%^ put:ors:dice sending