fix(l1): settle frame-tx fees on max_gas and the base blob rate #7073
All Vouch review confidence checks passed
Residual risk 0.16 = Change Risk (0.40) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.40 · 314 lines diff across 3 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.344
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #7073"
general
weight: 0.35
ElFantasma
EIP-8141 changed its gas accounting in ethereum/EIPs#11969 ("apply
charged_gasto fee settlement"), merged 2026-07-28. Our pinned spec commit predates it. Two consensus-visible gaps.max_costcharges blobs at the base rateWe charged
max_fee_per_blob_gasat APPROVE and refunded the difference at the end, so the payer's final balance was already correct. What was wrong is what the chain can observe in between:TXPARAM(0x06)returned the max-rate figure, and contracts read it.BALANCE/SELFBALANCE.Now the blob terms in
max_costandcharged_feeare identical, so they cancel: the burn is collected once, at the base rate, and never refunded.FrameTxContextcarries the block's blob base fee, captured at transaction entry, sinceload_tx_paramhas noEnvironmenthandle.The reservation is
max_gas, notstandard_gas_limitBoth sides carry the mandatory costs. A transaction whose EIP-7623 data floor exceeds what it declared for execution now reserves the floor rather than being rejected, so the static floor-reservation check is gone.
total_gas_limit()returnsmax_gas;standard_gas_limit()andcalldata_floor_total()are the two inputs.The mempool paymaster reservation uses the same definition, so the reservation ceiling and
TXPARAM(0x06)remain one number.Reachability
Only blob-carrying frame transactions see the
max_costchange, and only data-heavy ones see the floor change. Our mempool rejects blob-carrying frame transactions today (no sidecar transport), but block import accepts them, so a block from another builder would have diverged.Testing
max_cost_is_max_fee_times_limit_plus_base_rate_blob_costsetsmax_fee_per_blob_gasa thousandfold above the base fee, so the old formula cannot pass.max_gas_reserves_the_calldata_floor_instead_of_rejectingandmax_gas_takes_the_calldata_floor_when_it_exceeds_the_standard_limitpin both arms of themaxand the removed rejection.cargo clippy --workspace --all-targetsclean.