You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A Forest node can generate up-to-date snapshot files. However, we often want to take large snapshots and trim them to a specific epoch. This can be done entirely without network access.
The forest-cli archive export command takes a snapshot file as input and yields a smaller snapshot file as output. For example, the input snapshot might cover epochs 1 to 5000, and the output snapshot could cover epochs 1000 to 2000.
One more question: do we really want to call a param recent-roots? I would probably do something like epoch-from, epoch-to and make sure that epoch-from is at least chain_finality` (defaulting to it too).
We could come up with even better naming perhaps --epoch and --depth.
One more question: do we really want to call a param recent-roots? I would probably do something like epoch-from, epoch-to and make sure that epoch-from is at least chain_finality` (defaulting to it too).
We could come up with even better naming perhaps --epoch and --depth.
Activity
lemmih commentedon Jul 10, 2023
Testing can be done by downloading a calibnet snapshot and re-exporting it in various ways (different offsets, different number of tipsets).
lemmih commentedon Jul 10, 2023
Automated testing with the
MemoryDBwould also be nice.ruseinov commentedon Jul 11, 2023
@lemmih Do we also want the checksum here?
lemmih commentedon Jul 11, 2023
We can leave out the checksum for now.
ruseinov commentedon Jul 11, 2023
One more question: do we really want to call a param
recent-roots? I would probably do something likeepoch-from,epoch-toand make sure thatepoch-from is at leastchain_finality` (defaulting to it too).We could come up with even better naming perhaps
--epochand--depth.lemmih commentedon Jul 11, 2023
--epochand--depthlooks good.[-]`forest-cli archive snapshot --epoch=X`[/-][+]`forest-cli archive export --epoch=X`[/+]