Merge pull request #44 from ethereum/hwwhww/altona

Add Altona setting
This commit is contained in:
Hsiao-Wei Wang 2020-06-30 21:49:02 +08:00 committed by GitHub
commit 06e6838699
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,22 +5,21 @@ class BaseChainSetting(NamedTuple):
GENESIS_FORK_VERSION: bytes
MainnetSetting = BaseChainSetting(
GENESIS_FORK_VERSION=bytes.fromhex('00000000'),
)
# Eth2 Mainet setting
MainnetSetting = BaseChainSetting(GENESIS_FORK_VERSION=bytes.fromhex('00000000'))
# Eth2 spec v0.11.3 testnet
WittiSetting = BaseChainSetting(
GENESIS_FORK_VERSION=bytes.fromhex('00000113'),
)
WittiSetting = BaseChainSetting(GENESIS_FORK_VERSION=bytes.fromhex('00000113'))
# Eth2 spec v0.12.1 testnet
AltonaSetting = BaseChainSetting(GENESIS_FORK_VERSION=bytes.fromhex('00000121'))
MAINNET = 'mainnet'
WITTI = 'witti'
ALTONA = 'altona'
ALL_CHAINS: Dict[str, BaseChainSetting] = {
MAINNET: MainnetSetting,
WITTI: WittiSetting,
ALTONA: AltonaSetting,
}