Skip to content

Commit 5aff7eb

Browse files
committed
ethereum_test_tools/spec: fix difficulty in genesis
1 parent 1b5c61c commit 5aff7eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/ethereum_test_tools/spec/blockchain_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def make_genesis(
6767
transactions_root=EmptyTrieRoot,
6868
receipt_root=EmptyTrieRoot,
6969
bloom="0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
70-
difficulty=0x20000,
70+
difficulty=0x20000 if env.difficulty is None else env.difficulty,
7171
number=0,
7272
gas_limit=env.gas_limit,
7373
gas_used=0,

src/ethereum_test_tools/spec/state_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def make_genesis(
6666
transactions_root=EmptyTrieRoot,
6767
receipt_root=EmptyTrieRoot,
6868
bloom="0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", # noqa: E501
69-
difficulty=0x20000,
69+
difficulty=0x20000 if env.difficulty is None else env.difficulty,
7070
number=env.number - 1,
7171
gas_limit=env.gas_limit,
7272
# We need the base fee to remain unchanged from the genesis

0 commit comments

Comments
 (0)