Skip to content
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

feat(storage): SnapshotProviderRW::append_header #6213

Merged
merged 3 commits into from
Jan 25, 2024

Conversation

shekhirin
Copy link
Collaborator

@shekhirin shekhirin commented Jan 24, 2024

Append header to snapshot file

@shekhirin shekhirin force-pushed the alexey/snapshot-writer-headers branch from 8f7bef3 to 466f169 Compare January 24, 2024 16:55
@shekhirin shekhirin force-pushed the alexey/snapshot-writer-headers branch from 466f169 to 181ef96 Compare January 24, 2024 16:59
@shekhirin shekhirin marked this pull request as ready for review January 24, 2024 17:04
@shekhirin shekhirin added C-enhancement New feature or request A-static-files Related to static files labels Jan 24, 2024
Comment on lines 233 to 235
self.append_column(hash)?;
self.append_column(header)?;
self.append_column(terminal_difficulty)?;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

order is:
header, td , hash

according to crates/storage/db/src/snapshot/masks.rs:

add_snapshot_mask!(HeaderMask, Header, 0b001);
add_snapshot_mask!(HeaderMask, <HeaderTD as Table>::Value, 0b010);
add_snapshot_mask!(HeaderMask, BlockHash, 0b100);

@shekhirin shekhirin merged commit bff7550 into joshie/tx-snap-sync Jan 25, 2024
4 of 23 checks passed
@shekhirin shekhirin deleted the alexey/snapshot-writer-headers branch January 25, 2024 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-static-files Related to static files C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants