Skip to content

Conversation

@Farukest
Copy link
Contributor

Summary

  • Adds StateRootTask module for streaming state root calculation during transaction execution
  • Introduces --flashblocks.streaming-state-root CLI flag to enable the feature
  • Implements channel-based architecture to stream state updates to a background task
  • Reduces finalization latency by pre-fetching trie nodes incrementally

Test plan

  • Verify build compiles without warnings
  • Test with --flashblocks.streaming-state-root=true flag
  • Benchmark finalization latency with streaming vs synchronous state root

Closes #622

Implement a background task that incrementally computes state root
during transaction execution to reduce finalization latency.

- Add StateRootTask module for streaming state updates
- Add --flashblocks.streaming-state-root CLI flag
- Add finalize_payload_with_streaming and build_block_with_state_root
- Pre-fetch trie nodes and build sparse trie incrementally

Closes base#622
@cb-heimdall
Copy link
Collaborator

🟡 Heimdall Review Status

Requirement Status More Info
Reviews 🟡 0/1
Denominator calculation
Show calculation
1 if user is bot 0
1 if user is external 0
2 if repo is sensitive 0
From .codeflow.yml 1
Additional review requirements
Show calculation
Max 0
0
From CODEOWNERS 0
Global minimum 0
Max 1
1
1 if commit is unverified 0
Sum 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(flashblocks): Streaming State Root Calculation

2 participants