Skip to content

Commit 9cf45b4

Browse files
committed
feat(tests|fw): use verkle for forkname.
1 parent aa7c7c9 commit 9cf45b4

File tree

8 files changed

+32
-16
lines changed

8 files changed

+32
-16
lines changed

src/ethereum_test_forks/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
Paris,
2121
Prague,
2222
Shanghai,
23-
ShanghaiEIP6800,
23+
Verkle,
2424
)
2525
from .forks.transition import (
2626
BerlinToLondonAt5,
@@ -62,7 +62,7 @@
6262
"MuirGlacier",
6363
"Shanghai",
6464
"ShanghaiToCancunAtTime15k",
65-
"ShanghaiEIP6800",
65+
"Verkle",
6666
"EIP6800Transition",
6767
"Cancun",
6868
"Prague",

src/ethereum_test_forks/forks/forks.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -673,14 +673,14 @@ def engine_forkchoice_updated_version(
673673
return 3
674674

675675

676-
class ShanghaiEIP6800(
676+
class Verkle(
677677
Shanghai,
678-
transition_tool_name="Prague",
679-
blockchain_test_network_name="Prague",
678+
transition_tool_name="Verkle",
679+
blockchain_test_network_name="Verkle",
680680
solc_name="shanghai",
681681
):
682682
"""
683-
Shanghai + EIP-6800 (Verkle) fork
683+
Verkle fork. Built on top of Shanghai. To update when the exact fork is known.
684684
"""
685685

686686
@classmethod
@@ -718,11 +718,11 @@ def pre_allocation_blockchain(cls) -> Mapping:
718718
return new_allocation | super(Shanghai, cls).pre_allocation_blockchain()
719719

720720

721-
# TODO: move back to transition.py after filling and executing ShanghaiEIP6800 tests successfully
722-
@transition_fork(to_fork=ShanghaiEIP6800, at_timestamp=32)
721+
# TODO: move back to transition.py after filling and executing Verkle tests successfully
722+
@transition_fork(to_fork=Verkle, at_timestamp=32)
723723
class EIP6800Transition(
724724
Shanghai,
725-
blockchain_test_network_name="ShanghaiToPragueAtTime32",
725+
blockchain_test_network_name="ShanghaiToVerkleAtTime32",
726726
):
727727
"""
728728
Shanghai to Verkle transition at Timestamp 32.

src/ethereum_test_specs/blockchain.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
FixtureWithdrawalRequest,
3737
InvalidFixtureBlock,
3838
)
39-
from ethereum_test_forks import EIP6800Transition, Fork, ShanghaiEIP6800
39+
from ethereum_test_forks import EIP6800Transition, Fork, Verkle
4040
from ethereum_test_types import (
4141
Alloc,
4242
ConsolidationRequest,
@@ -517,7 +517,7 @@ def generate_block_data(
517517
requests = Requests(root=block.requests)
518518
header.requests_root = requests.trie_root
519519

520-
if fork.fork_at(env.number, env.timestamp) == ShanghaiEIP6800:
520+
if fork.fork_at(env.number, env.timestamp) == Verkle:
521521
env = Environment(
522522
**(
523523
env.model_dump(exclude_none=True)

src/evm_transition_tool/transition_tool.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ def _evaluate_filesystem(
309309
]
310310

311311
# TODO: Verkle specific logic, update when Verkle fork is confirmed.
312-
if t8n_data.fork_name == "Prague":
312+
if t8n_data.fork_name == "Verkle":
313313
output_paths["vkt"] = os.path.join("output", "vkt.json")
314314
args.extend(["--output.vkt", output_paths["vkt"]])
315315
if t8n_data.vkt is not None:
@@ -448,7 +448,7 @@ def construct_args_stream(
448448
]
449449

450450
# TODO: Verkle specific logic, update when Verkle fork is confirmed.
451-
if t8n_data.fork_name == "Prague":
451+
if t8n_data.fork_name == "Verkle":
452452
args.append("--output.vkt=stdout")
453453
if t8n_data.vkt is not None:
454454
args.append("--input.vkt=stdin")

src/pytest_plugins/consume/hive_simulators/ruleset.py

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@
322322
"HIVE_SHANGHAI_TIMESTAMP": 0,
323323
"HIVE_CANCUN_TIMESTAMP": 15000,
324324
},
325-
"ShanghaiToPragueAtTime32": { # TODO: Make this verkle specific
325+
"ShanghaiToVerkleAtTime32": {
326326
"HIVE_FORK_HOMESTEAD": 0,
327327
"HIVE_FORK_TANGERINE": 0,
328328
"HIVE_FORK_SPURIOUS": 0,
@@ -335,7 +335,23 @@
335335
"HIVE_FORK_MERGE": 0,
336336
"HIVE_TERMINAL_TOTAL_DIFFICULTY": 0,
337337
"HIVE_SHANGHAI_TIMESTAMP": 0,
338-
"HIVE_PRAGUE_TIMESTAMP": 32,
338+
"HIVE_VERKLE_TIMESTAMP": 32,
339+
},
340+
"Verkle": {
341+
"HIVE_FORK_HOMESTEAD": 0,
342+
"HIVE_FORK_TANGERINE": 0,
343+
"HIVE_FORK_SPURIOUS": 0,
344+
"HIVE_FORK_BYZANTIUM": 0,
345+
"HIVE_FORK_CONSTANTINOPLE": 0,
346+
"HIVE_FORK_PETERSBURG": 0,
347+
"HIVE_FORK_ISTANBUL": 0,
348+
"HIVE_FORK_BERLIN": 0,
349+
"HIVE_FORK_LONDON": 0,
350+
"HIVE_FORK_MERGE": 0,
351+
"HIVE_TERMINAL_TOTAL_DIFFICULTY": 0,
352+
"HIVE_SHANGHAI_TIMESTAMP": 0,
353+
"HIVE_CANCUN_TIMESTAMP": 0,
354+
"HIVE_VERKLE_TIMESTAMP": 0,
339355
},
340356
"Prague": {
341357
"HIVE_FORK_HOMESTEAD": 0,

tests/osaka/eip6800_verkle_tree/__init__.py renamed to tests/verkle/eip6800_verkle_tree/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Test cases for all EIPs in Verkle
33
"""
44

5-
VERKLE_FORK_NAME = "ShanghaiEIP6800"
5+
VERKLE_FORK_NAME = "Verkle"
66
VERKLE_TRANSITION_FORK_NAME = "EIP6800Transition"
File renamed without changes.

0 commit comments

Comments
 (0)