feat(bench): add replay-reorg command for benchmarking reorgs#23055
Open
feat(bench): add replay-reorg command for benchmarking reorgs#23055
Conversation
Co-Authored-By: Dan Cline <6798349+Rjected@users.noreply.github.com>
Contributor
|
Adds --payload-a-file, --payload-b-file for pre-downloaded block JSON, and --dora-url with --beacon-root-a/b for fetching orphaned blocks from a Dora beacon explorer. Supports both RPC block and beacon block JSON formats with automatic detection and beacon→engine format conversion. Co-Authored-By: Derek Cofausper <256792747+decofe@users.noreply.github.com> Amp-Thread-ID: https://ampcode.com/threads/T-019cf80b-6b8b-770a-ad10-e21675226297
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.
Adds a new
reth-bench replay-reorgsubcommand that replays a reorg between two existing block hashes.How it works
Given two competing chain tips (
--tip-aand--tip-b), the command:newPayload+forkchoiceUpdatednewPayloadonly)forkchoiceUpdatedswitching head to fork BReports per-phase and per-call latency, with the reorg FCU latency called out separately.
Flags
--tip-a/--tip-b: the two competing chain tip hashes--order a-then-b|b-then-a: which fork to build canonical first (default:a-then-b)--fcu-mode tip-only|per-block: FCU after every block vs only at the tip during canonical build (default:tip-only)--max-depth: cap on ancestor search depth (default: 4096)--reth-new-payload: usereth_newPayloadendpoint for server-side timingExample
Co-Authored-By: Dan Cline 6798349+Rjected@users.noreply.github.com
Prompted by: Dan