mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 20:04:09 +03:00
roller: bugfix for adding failed txs to history
This commit is contained in:
parent
27576e272b
commit
2bb218cfc8
@ -738,15 +738,17 @@
|
||||
%+ snoc nups
|
||||
[%tx address.tx roll-tx(status %failed)]
|
||||
=? valid gud [tx valid]
|
||||
=? finding !gud (~(put by finding) keccak %failed)
|
||||
=? history !gud
|
||||
=+ wer=(~(got by finding) keccak)
|
||||
?> ?=(^ wer)
|
||||
=/ =time
|
||||
?: ?=(%pending type) time.tx
|
||||
=+ wer=(~(got by finding) keccak)
|
||||
?>(?=(^ wer) time.wer)
|
||||
=+ txs=(~(got by history) address.tx)
|
||||
=. txs +:(del:orh txs time.wer)
|
||||
=. txs +:(del:orh txs time)
|
||||
%+ ~(put by history) address.tx
|
||||
%+ put:orh txs
|
||||
[time.wer roll-tx(status %failed)]
|
||||
[time roll-tx(status %failed)]
|
||||
=? finding !gud (~(put by finding) keccak %failed)
|
||||
$(txs t.txs, ups (weld ups nups))
|
||||
::
|
||||
++ try-apply
|
||||
|
Loading…
Reference in New Issue
Block a user