mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-11 08:55:23 +03:00
Skip past known transactions
We consider "nonce too low" transactions to be known too.
This commit is contained in:
parent
8019f6775f
commit
10a5fbade1
@ -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]
|
||||
!!
|
||||
|
Loading…
Reference in New Issue
Block a user