Skip past known transactions

We consider "nonce too low" transactions to be known too.
This commit is contained in:
Fang 2018-10-17 14:56:10 -07:00
parent 8019f6775f
commit 10a5fbade1

View File

@ -70,10 +70,16 @@
?> ?=(%batch -.res)
=. see
%- ~(gas in see)
%+ turn bas.res
%+ murn bas.res
|= r=response:rpc:jstd
^- @ux
^- (unit @ux)
?: ?=(%error -.r)
?: =('Known transaction' (end 3 17 message.r))
~& %sent-a-known-transaction--skipping
~
?: =('Nonce too low' message.r)
~& %nonce-too-low--skipping
~
~| :- 'transaction send failed, game over'
[code.r message.r]
!!