feat(l1): add debug_getRawBlockAccessList and align BAL getter errors #7069
All Vouch review confidence checks passed
Residual risk 0.18 = Change Risk (0.45) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.45 · 451 lines diff across 5 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.366
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7069"
general
weight: 0.35
ElFantasma
Motivation
execution-apis#851 — merged 2026-08-24, now in
src/eth/block.yamlandsrc/debug/getters.yaml— pins the semantics of the two EIP-7928 block-access-list getters, and glamsterdam-devnet-8 lists it as required. Two gaps against it:debug_getRawBlockAccessListis not implemented at all.eth_getBlockAccessListreturnsnullfor a block that predates Amsterdam, where thespec requires
-32001: Resource not found. A block whose access list cannot be producedis also indistinguishable from one that has none.
nullfor a pre-fork block is the wrong signal: it tells a caller the block is unknownwhen the truth is that block access lists do not exist yet at that height.
Description
Both getters now share one resolver:
| case |
eth_getBlockAccessList|debug_getRawBlockAccessList||---|---|---|
| unknown block, or
pending|null|-32001|| predates Amsterdam |
-32001|-32001|| Amsterdam+, history to answer is pruned |
4444|4444|debug_getRawBlockAccessListreturns the RLP encoding and accepts a block number, tag orhash (
BlockNumberOrTagOrHash, widened by #851 from number-or-tag).The
4444row covers three concrete situations: the block body is pruned, a regeneratedlist does not match the header commitment, and — following review — the parent header or
parent state needed for re-execution is pruned (previously that fell into the blanket
-32603 Internalmapping, which is exactly the failure mode of a snap-synced node askedabout a block below its pivot).
Where the codes come from (per review, now documented on the
RpcErrvariants):4444: Pruned history unavailablewas introduced across the eth/debug getters byexecution-apis#636 — EIP-4444
deliberately left RPC behaviour out of scope — and #851 requires it for the BAL getters.
-32001: Resource not foundis likewise per #851.Two more review follow-ups:
an error (it has no parent to re-execute from;
0xc0is the spec's own no-accesses rawexample).
debug_getRaw*family.The Amsterdam boundary is decided from the chain config rather than from the presence of
the header's BAL commitment, so a header missing the field for another reason is not
silently reported as pre-fork.
eth_getBlockAccessListalready emitted all six account fields with empty lists, which#851 makes explicit in the
AccountAccessschema; that behaviour is unchanged.Testing
Eight cases in
test/tests/rpc/block_access_list_tests.rs: the raw getter serving RLP byhash, the raw getter's
-32001on an unknown block, the JSON getter's-32001on apre-Amsterdam block, the unknown-hash-returns-
nullcase, both4444paths (body pruned;parent state pruned), the genesis empty list served as
0xc0, and extra-argumentrejection.
Also exercised against a dev node on an Amsterdam genesis: both getters over a block
carrying an
SSTOREtransaction (9 accounts, all six fields present), the raw getter byboth hash and tag, and each error path above.