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: enable parallel storage root computation on canonical chain write #8128
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looking good
ParallelStateRoot::new(consistent_view, hashed_state.clone()) | ||
.incremental_root_with_updates() | ||
.map(|(root, updates)| (root, Some(updates))) | ||
.map_err(ProviderError::from)?; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be BlockValidationError as before
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added an impl for going from ParallelStateRootError
directly to CanonicalError
, ptal
.provider()? | ||
// State root calculation can take a while, and we're sure no write transaction | ||
// will be open in parallel. See https://github.com/paradigmxyz/reth/issues/6168. | ||
.disable_long_read_transaction_safety(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thinking if worth configuring this in the consistent view
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add these changes if needed, lmk
67a4847
to
25c0a0e
Compare
gm @fgimenez next steps here? |
bump @rkrasiuk for review |
No description provided.