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

fix(engine): return error on StateRootTask multiproof and root calculation failures #13356

Merged
merged 1 commit into from
Dec 12, 2024

Conversation

fgimenez
Copy link
Member

The errors on multiproof and state root calculations are only logged, not returned. On errors the task just gets stuck.

@fgimenez fgimenez added C-bug An unexpected or incorrect behavior A-blockchain-tree Related to sidechains, reorgs and pending blocks A-trie Related to Merkle Patricia Trie implementation labels Dec 12, 2024
@fgimenez fgimenez requested a review from shekhirin December 12, 2024 15:07
)))
}
StateRootMessage::RootCalculationError(e) => {
return Err(ParallelStateRootError::Other(format!(
Copy link
Collaborator

@shekhirin shekhirin Dec 12, 2024

Choose a reason for hiding this comment

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

think we should introduce a custom error enum for the state root task, we seem to abuse the ParallelStateRootError::Other. can be done in a separate PR via a good first issue

Copy link
Contributor

Choose a reason for hiding this comment

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

@shekhirin, this is a good idea. Can we create this custom error enum within the state root task?

@fgimenez fgimenez enabled auto-merge December 12, 2024 15:18
@fgimenez fgimenez added this pull request to the merge queue Dec 12, 2024
Merged via the queue into main with commit 5ef21cd Dec 12, 2024
43 checks passed
@fgimenez fgimenez deleted the fgimenez/srt-return-on-error branch December 12, 2024 15:39
emhane pushed a commit to ethereum-optimism/op-reth that referenced this pull request Dec 13, 2024
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-trie Related to Merkle Patricia Trie implementation C-bug An unexpected or incorrect behavior
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants