Update fork constants

This commit is contained in:
Hsiao-Wei Wang 2023-05-24 12:13:02 +08:00
parent 738b9818b3
commit 57378c87d3
No known key found for this signature in database
GPG Key ID: AE3D6B174F971DE4

View File

@ -4,6 +4,7 @@ from .typing import SpecForkName, PresetBaseName
# #
# SpecForkName # SpecForkName
# #
# Some of the Spec module functionality is exposed here to deal with phase-specific changes. # Some of the Spec module functionality is exposed here to deal with phase-specific changes.
PHASE0 = SpecForkName('phase0') PHASE0 = SpecForkName('phase0')
ALTAIR = SpecForkName('altair') ALTAIR = SpecForkName('altair')
@ -17,15 +18,24 @@ CUSTODY_GAME = SpecForkName('custody_game')
DAS = SpecForkName('das') DAS = SpecForkName('das')
EIP6110 = SpecForkName('eip6110') EIP6110 = SpecForkName('eip6110')
#
# SpecFork settings
#
# The forks that are deployed on Mainnet
MAINNET_FORKS = (PHASE0, ALTAIR, BELLATRIX, CAPELLA)
# The forks that pytest can run with. # The forks that pytest can run with.
ALL_PHASES = ( ALL_PHASES = (
# Formal forks # Formal forks
PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, *MAINNET_FORKS,
# Experimental patches DENEB,
# Experimental features
EIP6110, EIP6110,
) )
# The forks that have light client specs
LIGHT_CLIENT_TESTING_FORKS = (*MAINNET_FORKS, DENEB)
# The forks that output to the test vectors. # The forks that output to the test vectors.
TESTGEN_FORKS = (PHASE0, ALTAIR, BELLATRIX, CAPELLA, DENEB, EIP6110) TESTGEN_FORKS = (*MAINNET_FORKS, DENEB, EIP6110)
ALL_FORK_UPGRADES = { ALL_FORK_UPGRADES = {
# pre_fork_name: post_fork_name # pre_fork_name: post_fork_name
@ -46,7 +56,7 @@ AFTER_DENEB_UPGRADES = {key: value for key, value in ALL_FORK_UPGRADES.items()
AFTER_DENEB_PRE_POST_FORKS = AFTER_DENEB_UPGRADES.items() AFTER_DENEB_PRE_POST_FORKS = AFTER_DENEB_UPGRADES.items()
# #
# Config # Config and Preset
# #
MAINNET = PresetBaseName('mainnet') MAINNET = PresetBaseName('mainnet')
MINIMAL = PresetBaseName('minimal') MINIMAL = PresetBaseName('minimal')