From efd64dba56f485eb6eb51567ee83819a12fa0bda Mon Sep 17 00:00:00 2001 From: Jochem Brouwer Date: Wed, 12 May 2021 19:11:26 +0200 Subject: [PATCH] eip1559: import original min gas limit (#3560) --- EIPS/eip-1559.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/EIPS/eip-1559.md b/EIPS/eip-1559.md index f56b17ef..46186cce 100644 --- a/EIPS/eip-1559.md +++ b/EIPS/eip-1559.md @@ -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