mirror of
https://github.com/sigp/lighthouse.git
synced 2026-05-07 16:55:46 +00:00
Ensure active state height is incrememented
This commit is contained in:
@@ -131,7 +131,8 @@ pub fn initialize_new_epoch(
|
|||||||
"last_finalized_epoch" => new_cry_state.last_finalized_epoch);
|
"last_finalized_epoch" => new_cry_state.last_finalized_epoch);
|
||||||
|
|
||||||
let new_act_state = ActiveState {
|
let new_act_state = ActiveState {
|
||||||
height: act_state.height,
|
height: act_state.height + 1,
|
||||||
|
// TODO: update to new randao
|
||||||
randao: act_state.randao,
|
randao: act_state.randao,
|
||||||
ffg_voter_bitfield: Bitfield::new(),
|
ffg_voter_bitfield: Bitfield::new(),
|
||||||
recent_attesters: vec![],
|
recent_attesters: vec![],
|
||||||
|
|||||||
Reference in New Issue
Block a user