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 executor with StateRootTask #12335

Merged
merged 8 commits into from
Nov 6, 2024

Conversation

fgimenez
Copy link
Member

@fgimenez fgimenez commented Nov 5, 2024

Towards: #12053
Requires: #12316

Creates a StateRootTask instance and wires it with the state hook passed to the executor using an unbounded channel. For now the StateRootTask instance is not created yet, some TODOs added for when all the functionality is in place and we can switch to use it.

@fgimenez fgimenez added C-perf A change motivated by improving speed, memory usage or disk footprint A-consensus Related to the consensus engine A-blockchain-tree Related to sidechains, reorgs and pending blocks A-trie Related to Merkle Patricia Trie implementation labels Nov 5, 2024
@fgimenez fgimenez force-pushed the fgimenez/integrate-executor-srt branch from f77f761 to 1bf8ed8 Compare November 5, 2024 12:10
@fgimenez fgimenez force-pushed the fgimenez/metered-executor-with-state-hook branch from ae5150e to f935262 Compare November 5, 2024 18:12
@fgimenez fgimenez force-pushed the fgimenez/integrate-executor-srt branch from 1bf8ed8 to d7a2b48 Compare November 5, 2024 18:12
@fgimenez fgimenez marked this pull request as draft November 6, 2024 09:49
@fgimenez fgimenez force-pushed the fgimenez/integrate-executor-srt branch from 6586622 to 77b913a Compare November 6, 2024 10:26
@fgimenez fgimenez marked this pull request as ready for review November 6, 2024 10:29
Base automatically changed from fgimenez/metered-executor-with-state-hook to main November 6, 2024 11:54
@fgimenez fgimenez force-pushed the fgimenez/integrate-executor-srt branch from 77b913a to ba4a804 Compare November 6, 2024 12:06
crates/engine/tree/src/tree/root.rs Outdated Show resolved Hide resolved
crates/engine/tree/src/tree/root.rs Outdated Show resolved Hide resolved
@fgimenez fgimenez force-pushed the fgimenez/integrate-executor-srt branch from 300aca1 to 53582dd Compare November 6, 2024 15:32
@fgimenez fgimenez added this pull request to the merge queue Nov 6, 2024
Comment on lines +110 to +111
// stream closed, return final result
return Poll::Ready(Ok((B256::default(), TrieUpdates::default())));
Copy link
Member

Choose a reason for hiding this comment

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

stream getting closed does not mean we finished the computation, let's leave it as unimplemented

Suggested change
// stream closed, return final result
return Poll::Ready(Ok((B256::default(), TrieUpdates::default())));
unimplemented!()

Merged via the queue into main with commit 2c5ba73 Nov 6, 2024
41 checks passed
@fgimenez fgimenez deleted the fgimenez/integrate-executor-srt branch November 6, 2024 19:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-blockchain-tree Related to sidechains, reorgs and pending blocks A-consensus Related to the consensus engine A-trie Related to Merkle Patricia Trie implementation C-perf A change motivated by improving speed, memory usage or disk footprint
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants