-
Notifications
You must be signed in to change notification settings - Fork 3
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
Snapshot metadata #16
Comments
Additionally, I'd like the following pieces of metadata:
|
From our in-person conversation if I want 3. someone (I volunteer) will need to add a new a new method: ChainExportRange(from, to types.TipSetKey) (<-chan []byte, error) or similar to Lotus. |
This is what I think I can get without having to wait for a new lotus release
We can then later add a new property ^ input welcome on naming / structure |
Suggestions:
Either Snakecase or camelcase is okay w me. Camelcase is my personal pref. |
This isn't possible with the current lotus API implementation due to null rounds, which is why I suggested: #16 (comment) |
Picking out the last TipSet that is included in the export isn't easy to do accurately because it's an implementation detail of ChainExport. In this code
https://github.com/filecoin-project/lotus/blob/v1.15.2/chain/store/snapshot.go#L128 The last TipSet in the export depends on the operand used in the comparison as well as the null arounds around To do this accurately and consistently we need a new export method that allows us to specify the last TipSet. Otherwise we can only really say it doesn't included states before some height, and even that is subject to off by one errors if lotus changes the operand. For archival purposes of chain state we need the new method. |
Okay, I understand that including the When I consume these snapshots, is it reasonable for me to infer the latest possible Additionally, since the snapshots will be performed (I assume) at regular intervals with coverage over every epoch, that worst case there would sometimes be duplicated state exported in two different exports (until snapshots start consuming this new Export method). |
|
In order to understand their contents before downloading the whole snapshot, as a consumer of these snapshots I would like separate metadata published for these snapshots such that I can programmatically parse and understand the snapshot.
Details to include:
If you expect one snapshot to differ from another in ways other than the epochs covered (like the snapshot has a different finality of epochs, or manages the data in a different way) it would be useful to include some structure to capture these details.
The text was updated successfully, but these errors were encountered: