From 0c514222810f7df1589906c687b5c26ec57f3f28 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 25 Jun 2020 11:23:00 +0800 Subject: [PATCH 1/2] Add Altona setting --- eth2deposit/settings.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/eth2deposit/settings.py b/eth2deposit/settings.py index b75e6aa..f31edee 100644 --- a/eth2deposit/settings.py +++ b/eth2deposit/settings.py @@ -4,23 +4,21 @@ from typing import Dict, NamedTuple 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, } From 636825394ddcf3aea0ae372f268b5ec742b57a9a Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 25 Jun 2020 11:42:03 +0800 Subject: [PATCH 2/2] Fix lint --- eth2deposit/settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/eth2deposit/settings.py b/eth2deposit/settings.py index f31edee..289f868 100644 --- a/eth2deposit/settings.py +++ b/eth2deposit/settings.py @@ -4,6 +4,7 @@ from typing import Dict, NamedTuple class BaseChainSetting(NamedTuple): GENESIS_FORK_VERSION: bytes + # Eth2 Mainet setting MainnetSetting = BaseChainSetting(GENESIS_FORK_VERSION=bytes.fromhex('00000000')) # Eth2 spec v0.11.3 testnet