Skip to content
This repository has been archived by the owner on Jan 12, 2022. It is now read-only.

Commit

Permalink
update v0.6: milder ejections (ethereum/consensus-specs#784)
Browse files Browse the repository at this point in the history
  • Loading branch information
sorpaas committed May 2, 2019
1 parent 1452226 commit 0e0a868
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beacon/src/executive/per_epoch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ impl<'state, 'config, C: Config> Executive<'state, 'config, C> {
pub fn update_ejections(&mut self) {
for index in self.state.active_validator_indices(self.current_epoch()) {
if self.state.validator_balances[index as usize] < self.config.ejection_balance() {
self.exit_validator(index);
self.initiate_validator_exit(index);
}
}
}
Expand Down

0 comments on commit 0e0a868

Please sign in to comment.