Skip to content

Commit ad39239

Browse files
chore: align gas limit with mainnet (#1994)
* chore: increate gas limit from 36m to 45m * doc: add changelog description
1 parent 0c4822c commit ad39239

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

.github/scripts/fill_introduced_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ set -e
99

1010
CHANGED_TEST_FILES="$1"
1111
PATCH_TEST_PATH="$2"
12-
BLOCK_GAS_LIMIT="${3:-36000000}"
12+
BLOCK_GAS_LIMIT="${3:-45000000}"
1313
FILL_UNTIL="${4:-Cancun}"
1414

1515
# Include basic evm operations into coverage by default

.github/scripts/fill_prepatched_tests.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set -e
1010
MODIFIED_DELETED_FILES="$1"
1111
BASE_TEST_PATH="$2"
1212
PATCH_TEST_PATH="$3"
13-
BLOCK_GAS_LIMIT="${4:-36000000}"
13+
BLOCK_GAS_LIMIT="${4:-45000000}"
1414
FILL_UNTIL="${5:-Cancun}"
1515

1616
echo "--------------------"

.github/workflows/coverage.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
env:
15-
BLOCK_GAS_LIMIT: "36000000"
15+
BLOCK_GAS_LIMIT: "45000000"
1616
FILL_UNTIL: "Cancun"
1717

1818
steps:

docs/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Users can select any of the artifacts depending on their testing needs for their
6262
- 🔀 Move `TransactionType` enum from test file to proper module location in `ethereum_test_types.transaction_types` for better code organization and reusability.
6363
- ✨ Opcode classes now validate keyword arguments and raise `ValueError` with clear error messages.
6464
- 🔀 This PR removes the `solc` requirement to fill Python test cases. Regular test contributors no longer need to concern themselves with `solc` and, as such, the `solc-select` dependency has been removed. The remaining tests that used Yul have been ported to the EEST opcode wrapper mini-lang and the use of Yul in Python tests is no longer supported. Maintainers only: To fill the "static" JSON and YAML tests (`./tests/static/`) locally, `solc` (ideally v0.8.24) must be available in your PATH.
65+
- 🔀 Updated default block gas limit from 36M to 45M to match mainnet environment.
6566

6667
#### `fill`
6768

src/ethereum_test_types/block_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
from ethereum_test_forks import Fork
2424

2525
DEFAULT_BASE_FEE = 7
26-
CURRENT_MAINNET_BLOCK_GAS_LIMIT = 36_000_000
26+
CURRENT_MAINNET_BLOCK_GAS_LIMIT = 45_000_000
2727
DEFAULT_BLOCK_GAS_LIMIT = CURRENT_MAINNET_BLOCK_GAS_LIMIT * 2
2828

2929

0 commit comments

Comments
 (0)