Skip to content

Commit

Permalink
update justification and finalization method
Browse files Browse the repository at this point in the history
  • Loading branch information
realbigsean committed Jun 21, 2022
1 parent a7b1e82 commit 7d8f85f
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,7 @@ pub fn process_justification_and_finalization<T: EthSpec>(
participation_cache: &ParticipationCache,
) -> Result<JustifiableBeaconState<T>, Error> {
if state.current_epoch() <= T::genesis_epoch().safe_add(1)? {
return Ok(JustifiableBeaconState {
current_justified_checkpoint: state.current_justified_checkpoint(),
previous_justified_checkpoint: state.previous_justified_checkpoint(),
justification_bits: state.justification_bits().clone(),
finalized_checkpoint: state.finalized_checkpoint(),
});
return Ok(JustifiableBeaconState::from(state));
}

let previous_epoch = state.previous_epoch();
Expand Down

0 comments on commit 7d8f85f

Please sign in to comment.