From 160d69b52b4f20891ffee91c51a346937e8eb78c Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 28 Jul 2022 18:06:54 +0800 Subject: [PATCH] Update chain settings 1. Add Goerli, which is an alias of Prater 2. Remove Kintsugi --- staking_deposit/settings.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/staking_deposit/settings.py b/staking_deposit/settings.py index 61de6a0..61045d3 100644 --- a/staking_deposit/settings.py +++ b/staking_deposit/settings.py @@ -10,30 +10,30 @@ class BaseChainSetting(NamedTuple): MAINNET = 'mainnet' -PRATER = 'prater' -KINTSUGI = 'kintsugi' -KILN = 'kiln' ROPSTEN = 'ropsten' +GOERLI = 'goerli' +PRATER = 'prater' +KILN = 'kiln' # Mainnet setting MainnetSetting = BaseChainSetting(NETWORK_NAME=MAINNET, GENESIS_FORK_VERSION=bytes.fromhex('00000000')) # Ropsten setting RopstenSetting = BaseChainSetting(NETWORK_NAME=ROPSTEN, GENESIS_FORK_VERSION=bytes.fromhex('80000069')) -# Testnet (spec v1.0.1) -PraterSetting = BaseChainSetting(NETWORK_NAME=PRATER, GENESIS_FORK_VERSION=bytes.fromhex('00001020')) -# Merge Testnet (spec v1.1.4) -KintsugiSetting = BaseChainSetting(NETWORK_NAME=KINTSUGI, GENESIS_FORK_VERSION=bytes.fromhex('60000069')) +# GOERLI (PRATER is alias) +_GOERLI_GENESIS_FORK_VERSION = bytes.fromhex('00001020') +GoerliSetting = BaseChainSetting(NETWORK_NAME=GOERLI, GENESIS_FORK_VERSION=_GOERLI_GENESIS_FORK_VERSION) +PraterSetting = BaseChainSetting(NETWORK_NAME=PRATER, GENESIS_FORK_VERSION=_GOERLI_GENESIS_FORK_VERSION) # Merge Testnet (spec v1.1.9) KilnSetting = BaseChainSetting(NETWORK_NAME=KILN, GENESIS_FORK_VERSION=bytes.fromhex('70000069')) ALL_CHAINS: Dict[str, BaseChainSetting] = { MAINNET: MainnetSetting, - PRATER: PraterSetting, - KINTSUGI: KintsugiSetting, - KILN: KilnSetting, ROPSTEN: RopstenSetting, + GOERLI: GoerliSetting, + PRATER: PraterSetting, + KILN: KilnSetting, }