mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-09-20 15:08:34 +03:00
Merge branch 'naive/snapshot' into roller/gas-price
This commit is contained in:
commit
92c498cd04
@ -1,3 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:e79296644adeb15e9fc73ede547c996270659358a61e627cb4056b89c04f7b08
|
||||
size 26099275
|
||||
oid sha256:c29577dc949ac0689ba3c97ad13b812ea6c3c6cc9d255b770d2da95fd9af84b9
|
||||
size 23121802
|
||||
|
@ -8,15 +8,16 @@
|
||||
dbug
|
||||
:: Generally don't update the snapshot until we have clay tombstoning.
|
||||
::
|
||||
/* snap %azimuth /app/azimuth/state/azimuth
|
||||
/* snap %azimuth-snapshot /app/azimuth/version-0/azimuth-snapshot
|
||||
:: /* snap %azimuth /app/azimuth/state/azimuth
|
||||
:: To update, run from dojo:
|
||||
:: -azimuth-snap-state %default 'state'
|
||||
:: -azimuth-snap-state %default 'version-0'
|
||||
::
|
||||
:: To recreate from a list of logs:
|
||||
:: =e -build-file %/lib/ethereum/hoon
|
||||
:: =l .^((list event-log:rpc:e) %gx /=azimuth=/logs/noun)
|
||||
:: */app/azimuth/logs/eth-logs ð-logs l
|
||||
:: -azimuth-snap-logs %default 'state'
|
||||
:: -azimuth-snap-logs %default 'version-0'
|
||||
::
|
||||
=/ snap=snap-state snap
|
||||
=/ last-snap=@ number.id.snap
|
||||
|
@ -1,7 +1,6 @@
|
||||
:: /app/azimuth state snapshot
|
||||
::
|
||||
/- *dice
|
||||
/+ naive
|
||||
::
|
||||
|_ snap=snap-state
|
||||
++ grab
|
@ -60,8 +60,11 @@
|
||||
leaf+"owners: {<~(wyt by owners)>}"
|
||||
==
|
||||
::
|
||||
=/ =path /app/azimuth/[name]/azimuth
|
||||
=/ =cage azimuth+!>([%0 id nas owners sponsors])
|
||||
=/ =path /app/azimuth/[name]/azimuth-snapshot
|
||||
=/ =cage
|
||||
:- %azimuth-snapshot
|
||||
!> ^- snap-state
|
||||
[%0 id nas owners sponsors]
|
||||
=/ =task [%info %base %& [path %ins cage]~]
|
||||
=/ =card [%pass /next %arvo %c task]
|
||||
;< ~ bind:m (send-raw-card:strandio card)
|
||||
|
@ -30,8 +30,11 @@
|
||||
leaf+"owners: {<~(wyt by owners)>}"
|
||||
==
|
||||
::
|
||||
=/ =path /app/azimuth/[name]/azimuth
|
||||
=/ =cage azimuth+!>([%0 id nas owners sponsors])
|
||||
=/ =path /app/azimuth/[name]/azimuth-snapshot
|
||||
=/ =cage
|
||||
:- %azimuth-snapshot
|
||||
!> ^- snap-state
|
||||
[%0 id nas owners sponsors]
|
||||
=/ =task [%info %base %& [path %ins cage]~]
|
||||
=/ =card [%pass /next %arvo %c task]
|
||||
;< ~ bind:m (send-raw-card:strandio card)
|
||||
|
@ -84,11 +84,11 @@
|
||||
:_ hav
|
||||
:+ lyt
|
||||
mark=;;(@tas (head tyl))
|
||||
?. ?=([%azimuth *] tyl)
|
||||
?. ?=([%azimuth-snapshot *] tyl)
|
||||
noun=.^(* %cx pax)
|
||||
=; convert
|
||||
mime=(convert .^(snap-state %cx pax))
|
||||
.^($-(snap-state mime) %cf (weld bas /azimuth/mime))
|
||||
.^($-(snap-state mime) %cf (weld bas /azimuth-snapshot/mime))
|
||||
=/ all ~(tap by dir.lon)
|
||||
|- ^+ hav
|
||||
?~ all hav
|
||||
|
Loading…
Reference in New Issue
Block a user