feat(flashblocks-rpc): Revamp worker, add state root strategies into flashblocks sequence validation#205
Merged
sieniven merged 4 commits intoniven/cleanup-flashblocks-rpcfrom Mar 19, 2026
Conversation
Consolidate `processor.rs` into `validator.rs`, removing the separate module. Add parallel and overlay-based state root computation via `reth-trie-parallel`, `reth-trie-db`, and `reth-engine-tree`. Introduce `OverlayProviderFactory` trait alias and `compute_state_root` dispatcher that tries parallel SR first and falls back to serial. Replace direct `BlockBuilder` usage with `PayloadProcessor`-based execution using a no-op `flashblock_tx_iterator` for pre-recovered transactions. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…-reth into niven/flashblocks-validation
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
sieniven
commented
Mar 19, 2026
Contributor
Author
sieniven
left a comment
There was a problem hiding this comment.
Note on subsequent reth version upgrades (todo):
- Add paradigmxyz/reth#22347 fixes once reth version is upgraded
- Add paradigmxyz/reth#22647 optimizations to share tx index
- paradigmxyz/reth#22604
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR contains the flashblocks RPC layer revamp optimizations on the execution validation layer, and aligns to the upstream reth's payload validator logic. The old flashblocks RPC worker logic was vastly over-complicated, and this PR revamps the version entirely. Note that the PR is separated from the revamp PR #176 for better clarity on the validation optimizations.
The PR adds the new
FlashblockSequenceValidatorwhich encapsulates the entire flashblocks sequence validation logic. It aligns the sequence validation logic to the highly optimized upstream reth's engine payload validator.Ref: https://github.com/paradigmxyz/reth/blob/main/crates/engine/tree/src/tree/payload_validator.rs
Below are some of the key optimizations: