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: initial export snapshot skeleton #40

Merged
merged 2 commits into from
Nov 16, 2023
Merged

feat: initial export snapshot skeleton #40

merged 2 commits into from
Nov 16, 2023

Conversation

zeapoz
Copy link
Member

@zeapoz zeapoz commented Nov 9, 2023

Implements a skeleton of the export snapshot functionality.

Currently only handles the partial exporting of storage logs. Storage logs processing are missing handling of enumeration_index & L1Metadata that needs to be procured through the fetcher.

@zeapoz zeapoz requested a review from tuommaki November 9, 2023 11:38
@zeapoz zeapoz self-assigned this Nov 9, 2023
Copy link
Collaborator

@tuommaki tuommaki left a comment

Choose a reason for hiding this comment

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

LGTM 👍

impl Processor for SnapshotExporter {
async fn run(mut self, mut rx: mpsc::Receiver<CommitBlockInfoV1>) {
// TODO: Send these from fetcher.
let miniblock_number = U64::from(0);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
let miniblock_number = U64::from(0);

This will be sort of "WONTFIX", because we don't have any information about miniblocks. AFAIU miniblocks are the L2 transaction bundles and those aren't stored in L1. Only the resulting state.

@zeapoz zeapoz merged commit 5408f3f into main Nov 16, 2023
4 checks passed
@zeapoz zeapoz deleted the feat/export-snapshot branch November 16, 2023 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants