Add Altona setting

This commit is contained in:
Hsiao-Wei Wang 2020-06-25 11:23:00 +08:00
parent 87a1e15c00
commit 0c51422281
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4

View File

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