feat(flashblocks): add canonical block reconciliation to cache and service (2)#18994
Merged
einar-oplabs merged 1 commit intoteddyknox/flashblock-sequencingfrom Feb 3, 2026
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## teddyknox/flashblock-sequencing #18994 +/- ##
==================================================================
+ Coverage 79.8% 81.7% +1.8%
==================================================================
Files 133 133
Lines 6909 6909
==================================================================
+ Hits 5519 5647 +128
+ Misses 1390 1262 -128
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
b1f8c96 to
ae54537
Compare
d3b6784 to
af89d39
Compare
af89d39 to
5bd92e1
Compare
95 checks passed
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
Integrates canonical block reconciliation into the flashblock service and sequence manager:
CanonicalBlockNotificationtype for receiving canonical block events via channelprocess_canonical_block()toSequenceManagerusing validators from PR Clean Documentation #1canonical_block_rxchannel and processes notifications in the event loopreorg_countmetric counterNew APIs
FlashBlockService::with_canonical_block_rx()- Sets the canonical block receiverFlashBlockService::with_max_depth()- Configures max depth (default: 64 blocks)SequenceManager::process_canonical_block()- Reconciles pending state with canonicalSequenceManager::earliest_block_number()/latest_block_number()- Query pending block rangeTest plan
process_canonical_blockwith no pending state → NoPendingStateearliest_block_number/latest_block_numbertracking