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

[Prover] Prover-Node follows pending chain and proves each block of an epoch off a historic block (world state snapshot) #10265

Closed
Tracked by #8495
alexghr opened this issue Nov 28, 2024 · 0 comments · Fixed by #10263
Assignees

Comments

@alexghr
Copy link
Contributor

alexghr commented Nov 28, 2024

No description provided.

@alexghr alexghr changed the title prover node follows pending chain and proves each block of an epoch off a historic block (world state snapshot) [Prover] Prover-Node follows pending chain and proves each block of an epoch off a historic block (world state snapshot) Nov 28, 2024
@alexghr alexghr linked a pull request Nov 28, 2024 that will close this issue
@alexghr alexghr added this to A3 Nov 28, 2024
@github-project-automation github-project-automation bot moved this to Todo in A3 Nov 28, 2024
@alexghr alexghr moved this from Todo to In Progress in A3 Nov 28, 2024
spalladino added a commit that referenced this issue Dec 2, 2024
Instead of processing blocks in sequencer during epoch proving and
trigger proving jobs as each block is processed, we fetch the state
prior to each block by forking off a world state following the pending
(not proven) chain and process each block (ie execute public functions)
in parallel. This means tx execution is less of a bottleneck for
proving.

Main change is that the epoch orchestrator now requires not a db, but
something that can return forks at given block numbers of the db. It
also means that the orchestrator accepts out-of-order operations for
block building, so multiple blocks can be started, and their txs added
in any order (though following the order within each block).

Builds on #10174

Fixes #10265

Pending:
- Ensuring the state after processing each block matches what we had
used from world-state
@github-project-automation github-project-automation bot moved this from In Progress to Done in A3 Dec 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants