RadarFound by New EIPs

EIP-8456: CALLSTATUS instruction proposed

Oct 28 find · published Oct 26
EMethereum-magicians.org · 3 min readRead original
Ethereum Improvement ProposalCore EIP

Svlachakis proposes CALLSTATUS, a new EVM instruction that exposes the completion status of the most recent call as three bits. The instruction, tentatively at opcode 0xA5 costing 2 gas, distinguishes reverts from out-of-gas failures and halts without requiring gas arithmetic. It returns 0 for success, 1 for revert, 2 for halt, 4 for success with a halt below, or 5 for revert with a halt below. This lets contracts reliably detect failures after repricing forks, solving the problem that every repricing fork has broken gas-based thresholds. A sticky halt flag travels up through frame completions so intermediaries like proxies and batches cannot mask halts as deliberate reverts. Outstanding issues include finalizing the opcode number, deciding whether to expose the halt bit for success cases, and building prototype implementations and compiler support.

0xA5Proposed opcode
2 gasInstruction cost

Comments

Sign in to join the conversation.

More from this batch

EIP-8053: Milli-gas for high-precision gas metering updatedGitHub · ethereum/EIPs
New EIPsNew Ethereum Improvement Proposals as they are posted for discussion, with what each one would change and who proposed it.