From 58c6465f44dbc4e9670b3e4dc989e04b1c1d7197 Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Wed, 24 Oct 2018 10:15:59 +0200 Subject: [PATCH] Ensure genesis inducts all validators as active --- beacon_chain/chain/src/genesis.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/beacon_chain/chain/src/genesis.rs b/beacon_chain/chain/src/genesis.rs index 646c18894..f3426729c 100644 --- a/beacon_chain/chain/src/genesis.rs +++ b/beacon_chain/chain/src/genesis.rs @@ -2,6 +2,7 @@ use types::{ CrosslinkRecord, Hash256, ValidatorRegistration, + ValidatorStatus, }; use super::{ ActiveState, @@ -37,7 +38,7 @@ pub fn genesis_states(config: &ChainConfig) let validators = { let mut inductor = ValidatorInductor::new(0, config.shard_count, vec![]); for registration in &config.initial_validators { - let _ = inductor.induct(®istration); + let _ = inductor.induct(®istration, ValidatorStatus::Active); }; inductor.to_vec() };