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(engine): integrate state root task and comment it #13265

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

shekhirin
Copy link
Collaborator

This doesn't enable the state root task, but instead just integrates it commented into the main codepath. This makes the testing easier, so that the "wiring" PR will be only about uncommenting these lines.

@shekhirin shekhirin added C-enhancement New feature or request A-trie Related to Merkle Patricia Trie implementation labels Dec 10, 2024
@shekhirin shekhirin force-pushed the alexey/state-root-task-integrate branch from b4f0790 to 71f5252 Compare December 10, 2024 11:54
@shekhirin shekhirin changed the base branch from main to alexey/state-root-task-bpf December 11, 2024 17:08
@shekhirin shekhirin force-pushed the alexey/state-root-task-integrate branch 5 times, most recently from 30c6ee9 to dab362e Compare December 11, 2024 18:04
@shekhirin shekhirin force-pushed the alexey/state-root-task-integrate branch from dab362e to a20b19b Compare December 11, 2024 18:05
Base automatically changed from alexey/state-root-task-bpf to main December 11, 2024 18:30
@shekhirin shekhirin marked this pull request as ready for review December 12, 2024 11:23
crates/engine/tree/src/tree/mod.rs Outdated Show resolved Hide resolved
let noop_state_hook = |_state: &EvmState| {};
let persistence_not_in_progress = !self.persistence_state.in_progress();

// TODO: uncomment to use StateRootTask
Copy link
Member

Choose a reason for hiding this comment

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

This doesn't include the changes for using the std::thread::scope that spawning StateRootTask requires now

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yep true, but they were quite invasive because it requires a huge scope that different stuff gets in, and also a custom return from that scope. So I decided to leave it for the wiring PR.

crates/engine/tree/src/tree/mod.rs Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-trie Related to Merkle Patricia Trie implementation C-enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants