docs: distinguish RPC gascap from protocol and block gas limits - #308
Conversation
Co-authored-by: Cursor <cursoragent@cursor.com>
|
Disclosure: this PR implements the docs fix I outlined on #271, so I re-verified rather than just re-reading my own suggestion back. Content verification
One correction worth making before mergeThe line "no distinct JSON-RPC code" overstates the ambiguity. I ran fresh probes today:
So at the raw JSON-RPC level, revert is distinguishable from cap/balance by code alone — the ambiguity this section is warning about is real, but it's specifically between the RPC-cap, protocol-cap, and balance-derived shapes, which do all share the Suggested rewording: "no distinct JSON-RPC code separates the two gas-budget shapes from each other (compare the numeric value); a genuine revert is a different raw code ( Process notes
|
Summary
Clarify in
BREAKING_CHANGES.mdv0.7.2 that--rpc.gascapis a node-local simulation limit, distinct from the EIP-7825 per-transaction protocol cap and the block gas limit — addressing the false "transaction is impossible" conclusion wheneth_estimateGasfails.Adds a For Application Developers section with:
min(--rpc.gascap, 2²⁴))Fixes #271. Complements #297 and public-testnet-rpc.md ( #299 ).
Test plan