fix(l1): drive the Amsterdam engine-API versions from dev mode #7067
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 · 414 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.361
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7067"
general
weight: 0.35
ElFantasma
Motivation
--devcannot run an Amsterdam+ chain. The dev block producer picksnewPayloadV4/V5 by fork, but pins
forkchoiceUpdatedto V3 andgetPayloadto V5, and both arerejected once Amsterdam is active:
Unsupported fork: forkChoiceV3 used to build Amsterdam payloadgetPayloadV5 serves Osaka only; Amsterdam+ needs V6Every slot fails, and the producer is fatal after three consecutive failures, so the node
exits a second after startup:
I hit this reproducing a devnet issue locally on a Hegotá genesis.
Description
Select the version by fork at the block timestamp, mirroring the
newPayloadswitch thatwas already there:
| call | pre-Amsterdam | Amsterdam+ |
|---|---|---|
|
forkchoiceUpdated| V3 | V4 ||
getPayload| V5 | V6 ||
newPayload| V4 | V5 (unchanged) |EngineClientgainsengine_forkchoice_updated_v4andengine_get_payload_v6.V4 attributes need two fields a CL would supply, so the producer stands in: the EIP-7843
slotNumber(one slot per production attempt, starting from the head's slot so it staysmonotonic across restarts) and the execution-apis#796
targetGasLimit(held at the head'sgas limit).
start_block_producerwould have reached 9 positional parameters, trippingclippy::too_many_argumentsunder-D warnings, so its arguments move into aBlockProducerConfig.How to Test
That genesis is added here, because selecting the right engine-API versions is not enough on
its own. The EIP-8282 builder deposit/exit predeploys come from genesis, like the
EIP-7002/EIP-7251 ones, and their empty code invalidates every Amsterdam+ block, so the
producer still died after three attempts:
fixtures/genesis/l1-hegota.jsonisl1.jsonplus those two predeploys, withamsterdamTimeand
hegotaTimeat 0. The Hegotá predeploys (0x…8141,0x…8250) need no entry: the clientinstalls them at the fork boundary.
docs/developers/l1/dev-mode.mddocuments the flag.With it, a chain that produced no blocks at all before mines steadily, and headers carry both
the EIP-7843
slotNumberand the EIP-7928blockAccessListHash:Verified further by driving frame transactions through the resulting node: the EIP-8141
admission rules, EIP-8250 keyed nonces and a sponsored transaction all behave, 47 blocks with
no errors.
Pre-Amsterdam is unchanged: the same run on an Osaka-only genesis still produces blocks via
V3/V5 with
slotNumber: null.make lint-l1clean;cargo test -p ethrex-rpc --lib98 passing.Checklist
STORE_SCHEMA_VERSION(crates/storage/lib.rs) if the PR includes breaking changes to theStorerequiring a re-sync. _(N/A — dev-mode block production and engine-API client only.)_