From 009e9a6a416603a429b0dc96c63a17f3399b1417 Mon Sep 17 00:00:00 2001 From: Zahary Karadjov Date: Thu, 6 Aug 2020 14:00:31 +0300 Subject: [PATCH] Fix 'make test' --- beacon_chain/spec/presets/v0_12_2/mainnet.nim | 2 ++ beacon_chain/spec/presets/v0_12_2/minimal.nim | 3 +++ 2 files changed, 5 insertions(+) diff --git a/beacon_chain/spec/presets/v0_12_2/mainnet.nim b/beacon_chain/spec/presets/v0_12_2/mainnet.nim index a31f3c322..aff2b6aa8 100644 --- a/beacon_chain/spec/presets/v0_12_2/mainnet.nim +++ b/beacon_chain/spec/presets/v0_12_2/mainnet.nim @@ -151,6 +151,8 @@ const # Validators # --------------------------------------------------------------- + # https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/configs/mainnet/phase0.yaml#L38 + ETH1_FOLLOW_DISTANCE* {.intdefine.}: uint64 = 1024 # blocks ~ 4 hours TARGET_AGGREGATORS_PER_COMMITTEE*: uint64 = 16 # validators RANDOM_SUBNETS_PER_VALIDATOR*: uint64 = 1 # subnet EPOCHS_PER_RANDOM_SUBNET_SUBSCRIPTION*: uint64 = 256 # epochs ~ 27 hours diff --git a/beacon_chain/spec/presets/v0_12_2/minimal.nim b/beacon_chain/spec/presets/v0_12_2/minimal.nim index 780112c1d..5c5aaa1da 100644 --- a/beacon_chain/spec/presets/v0_12_2/minimal.nim +++ b/beacon_chain/spec/presets/v0_12_2/minimal.nim @@ -39,6 +39,9 @@ const # --------------------------------------------------------------- # https://github.com/ethereum/eth2.0-specs/blob/v0.12.2/configs/minimal/phase0.yaml#L61 + # Changed + ETH1_FOLLOW_DISTANCE* {.intdefine.}: uint64 = 16 # blocks + # Unchanged MIN_DEPOSIT_AMOUNT*: uint64 = 2'u64^0 * 10'u64^9 MAX_EFFECTIVE_BALANCE*: uint64 = 2'u64^5 * 10'u64^9