-
Notifications
You must be signed in to change notification settings - Fork 159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
forest-cli archive export --epoch=X
#3159
Comments
Testing can be done by downloading a calibnet snapshot and re-exporting it in various ways (different offsets, different number of tipsets). |
Automated testing with the |
@lemmih Do we also want the checksum here? |
We can leave out the checksum for now. |
One more question: do we really want to call a param We could come up with even better naming perhaps |
|
forest-cli archive snapshot --epoch=X
forest-cli archive export --epoch=X
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.Subtasks:
recent-roots
andepoch
from cli flags,export
function to generate snapshot data,Error handling:
recent-roots
too low (less thanchain_finality
),recent-roots
too high (greater than available roots),epoch
not in CAR input file,Export function
forest/src/chain/store/chain_store.rs
Lines 528 to 535 in 4f0d75f
The text was updated successfully, but these errors were encountered: