feat(anvil): add debug_getRawHeader - #61
Closed
PelleKrab wants to merge 1 commit into
Closed
Conversation
This was referenced Aug 11, 2026
PelleKrab
force-pushed
the
feat/debug-get-raw-header
branch
from
August 11, 2026 17:39
8c1f218 to
0e28587
Compare
PelleKrab
changed the base branch from
base-anvil-fork
to
fix/cargo-deny-stale-advisory
August 11, 2026 17:39
Expose canonical RLP-encoded block headers for proof witness construction. Co-authored-by: Amp <amp@ampcode.com> Amp-Thread-ID: https://ampcode.com/threads/T-019ff1b0-c07c-77f3-816c-5da33175c7a4
PelleKrab
force-pushed
the
fix/cargo-deny-stale-advisory
branch
from
August 11, 2026 17:57
872679e to
73d1546
Compare
PelleKrab
force-pushed
the
feat/debug-get-raw-header
branch
from
August 11, 2026 17:57
0e28587 to
acf30db
Compare
Contributor
Author
|
Superseded: |
3 tasks
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.
Motivation
Base proof witness construction needs the canonical RLP-encoded L1 block header selected by block ID.
Solution
Add geth-compatible
debug_getRawHeader(BlockId)request handling and return the canonical RLP encoding of the selected header. Unknown blocks returnnull.Stack
debug_getRawHeader← this PRdebug_getRawReceipts/eth/v1/config/specTesting
cargo test -p anvil --test it beacon_api::test_debug_get_raw_header -- --nocapturecargo fmt --all -- --checkgit diff --checkPR Checklist