RadarFound by New EIPs

EIP-8053: Milli-gas for high-precision gas metering updated

Oct 28 find · published Oct 26
GHGitHub · ethereum/EIPs · 2 min readRead original
Ethereum Improvement ProposalCore EIP

Maria Silva and Łukasz Rozmej update EIP-8053 to use milli-gas as the EVM's internal accounting unit, multiplying gas_left by 1000 to reduce rounding errors. The top-level frame starts with milli_gas_left = gas_left × 1000, and at transaction end the result rounds down so gas used rounds up. Intrinsic gas and all transaction-level quantities stay in standard gas units. Opcode costs multiply by 1000 when charged against milli_gas_left, including memory expansion and precompile costs. The GAS opcode reports available gas in gas units rounded down, and the refund counter stays in gas units. This approach eliminates rounding losses from high-precision gas metering without changing user experience.

1000xMultiplier for internal accounting

Comments

Sign in to join the conversation.

More from this batch

EIP-8456: CALLSTATUS instruction proposedethereum-magicians.org
New EIPsNew Ethereum Improvement Proposals as they are posted for discussion, with what each one would change and who proposed it.