pill: load azimuth snapshot file with mime mark

This commit is contained in:
yosoyubik 2021-12-14 09:40:34 +01:00
parent 8601b13e3f
commit 4724c32d3d
3 changed files with 8 additions and 15 deletions

View File

@ -1,3 +1,3 @@
version https://git-lfs.github.com/spec/v1 version https://git-lfs.github.com/spec/v1
oid sha256:c29577dc949ac0689ba3c97ad13b812ea6c3c6cc9d255b770d2da95fd9af84b9 oid sha256:f975f09e5a0172427412e275f333b33f880d914f6f741ea43b0b03a48a393ec7
size 23121802 size 26016203

View File

@ -9,14 +9,10 @@
:: Generally don't update the snapshot until we have clay tombstoning. :: Generally don't update the snapshot until we have clay tombstoning.
:: ::
/* snap %azimuth-snapshot /app/azimuth/version-0/azimuth-snapshot /* snap %azimuth-snapshot /app/azimuth/version-0/azimuth-snapshot
:: /* snap %azimuth /app/azimuth/state/azimuth
:: To update, run from dojo: :: To update, run from dojo:
:: -azimuth-snap-state %default 'version-0' :: -azimuth-snap-state %default 'version-0'
:: ::
:: To recreate from a list of logs: :: To recreate from a full list of logs (at /app/azimuth/logs/eth-logs):
:: =e -build-file %/lib/ethereum/hoon
:: =l .^((list event-log:rpc:e) %gx /=azimuth=/logs/noun)
:: */app/azimuth/logs/eth-logs &eth-logs l
:: -azimuth-snap-logs %default 'version-0' :: -azimuth-snap-logs %default 'version-0'
:: ::
=/ snap=snap-state snap =/ snap=snap-state snap
@ -237,8 +233,6 @@
?: ?=(%disavow -.diff) ?: ?=(%disavow -.diff)
[(jael-update:do [*ship id.diff %disavow ~]~) this] [(jael-update:do [*ship id.diff %disavow ~]~) this]
:: ::
:: TODO: skip running the logs if we receive a history diff?
::
=. logs.state =. logs.state
?- -.diff ?- -.diff
:: %history loglist.diff :: %history loglist.diff

View File

@ -1,6 +1,6 @@
:: |pill: helper functions for making pills :: |pill: helper functions for making pills
:: ::
/- *dice /- dice
^? ^?
|% |%
:: ::
@ -82,13 +82,12 @@
=/ lon .^(arch %cy pax) =/ lon .^(arch %cy pax)
=? hav ?=(^ fil.lon) =? hav ?=(^ fil.lon)
:_ hav :_ hav
:+ lyt :- lyt
mark=;;(@tas (head tyl))
?. ?=([%azimuth-snapshot *] tyl) ?. ?=([%azimuth-snapshot *] tyl)
noun=.^(* %cx pax) [mark=;;(@tas (head tyl)) noun=.^(* %cx pax)]
=; convert =; convert
mime=(convert .^(snap-state %cx pax)) mime/(convert .^(snap-state:dice %cx pax))
.^($-(snap-state mime) %cf (weld bas /azimuth-snapshot/mime)) .^($-(snap-state:dice mime) %cf (weld bas /azimuth-snapshot/mime))
=/ all ~(tap by dir.lon) =/ all ~(tap by dir.lon)
|- ^+ hav |- ^+ hav
?~ all hav ?~ all hav