From c2c456201f34bdb4740e3c1c2e6438ce2c57300f Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Fri, 20 Jul 2018 17:49:09 +1000 Subject: [PATCH] Ensure active state height is incrememented --- src/state/transition/epoch.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/state/transition/epoch.rs b/src/state/transition/epoch.rs index 271b3f7fd..089aa2a56 100644 --- a/src/state/transition/epoch.rs +++ b/src/state/transition/epoch.rs @@ -131,7 +131,8 @@ pub fn initialize_new_epoch( "last_finalized_epoch" => new_cry_state.last_finalized_epoch); let new_act_state = ActiveState { - height: act_state.height, + height: act_state.height + 1, + // TODO: update to new randao randao: act_state.randao, ffg_voter_bitfield: Bitfield::new(), recent_attesters: vec![],