Add tests for skipping reorg only if ancestor of finalised block#11439
Conversation
# Conflicts: # src/Nethermind/Nethermind.Merge.Plugin/BlockTreeExtensions.cs # src/Nethermind/Nethermind.Merge.Plugin/Handlers/ForkchoiceUpdatedHandler.cs # src/Nethermind/Nethermind.Taiko/Rpc/TaikoForkchoiceUpdatedHandler.cs
|
Claude finished @Marchhill's task in 3m 58s —— View job Re-reviewing with the current branch state (commits
Re-review: Skip reorg only if ancestor of finalised blockPrior HIGH: Tests deleted, not replaced — RESOLVEDThe new commits add two parameterised test methods:
Together they cover both code paths (processed and unprocessed blocks), and the three offsets pin the Prior MEDIUM:
|
|
@claude review |
|
Claude finished @Marchhill's task in 4m 29s —— View job PR Review: Skip reorg only if ancestor of finalised block
SummaryThis PR, in its current state against master, contributes 81 lines of tests to This is a re-review. A previous round found a High blocker (missing tests), which the author resolved with two parameterised test methods. A subsequent re-review declared it Mergeable. This review audits the current tip ( FindingsNo new Critical / High / Medium findingsAll previously-raised blockers are resolved. Below are the observations from examining the current code: Tests — boundary coverage is correct
This pins the
The helper builds 5 blocks (indices 0-4), advances head to
Calling Unprocessed test for offset = -1 uses non-zero The FCU is Low — spec reference still absent on
|
Implements ethereum/execution-apis#786
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Documentation
Requires documentation update
Requires explanation in Release Notes