Skip to content

Commit

Permalink
Update EIP-4803: Move to Review
Browse files Browse the repository at this point in the history
Merged by EIP-Bot.
  • Loading branch information
axic authored Nov 30, 2024
1 parent 6354028 commit bbbca7b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions EIPS/eip-4803.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ title: Limit transaction gas to a maximum of 2^63-1
description: Valid transactions must have a reasonable gas limit
author: Alex Beregszaszi (@axic)
discussions-to: https://ethereum-magicians.org/t/eip-4803-limit-transaction-gas-to-a-maximum-of-2-63-1/8296
status: Stagnant
status: Review
type: Standards Track
category: Core
created: 2022-02-02
Expand All @@ -20,14 +20,18 @@ The gas limit field in the transaction is specified to be an arbitrary long unsi

## Specification

Introduce one new restrictions retroactively from genesis: any transaction is invalid and not includeable in a block, where the gas limit exceeds `2^63-1`.
Introduce one new restriction retroactively from genesis: any transaction is invalid and not includeable in a block, where the gas limit exceeds `2^63-1`.

## Rationale

### `2^63-1` vs `2^64-1`

`2^63-1` is chosen because it allows representing the gas value as a signed integer, and so the out of gas check can be done as a simple "less than zero" check after subtraction.

### Consider `2^31-1`

An alternative is considering a lower limit, because this can be handled easily in Javascript, since it handles numbers as floating point (the actual upper bound is `2^53-1`).

### Current limit

Due to the nature of RLP encoding, there is no fixed upper bound for the value, but most implementations limit it to 256-bits. Furthermore, most client implementations (such as geth) internally handle gas as a 64-bit value.
Expand All @@ -42,10 +46,6 @@ Before [EIP-1559](./eip-1559.md) it was possible to include transactions with `g

None.

## Test Cases

TBA

## Copyright

Copyright and related rights waived via [CC0](../LICENSE.md).

0 comments on commit bbbca7b

Please sign in to comment.