Skip to content

Commit

Permalink
eip1559: import original min gas limit (#3560)
Browse files Browse the repository at this point in the history
  • Loading branch information
jochem-brouwer authored May 12, 2021
1 parent 5aa223d commit efd64db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions EIPS/eip-1559.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@ class World(ABC):
assert block.gas_limit < parent_gas_limit + parent_gas_limit // 1024, 'invalid block: gas limit increased too much'
assert block.gas_limit > parent_gas_limit - parent_gas_limit // 1024, 'invalid block: gas limit decreased too much'

# check if the gas limit is at least the minimum gas limit
assert block.gas_limit >= 5000

# check if the base fee is correct
if INITIAL_FORK_BLOCK_NUMBER == block.number:
expected_base_fee_per_gas = INITIAL_BASE_FEE
Expand Down

0 comments on commit efd64db

Please sign in to comment.