mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-18 13:28:33 +00:00
Merge branch 'v0.6.1' into docker-env
This commit is contained in:
@@ -69,11 +69,10 @@ impl<T: Store, E: EthSpec> OptimizedLMDGhost<T, E> {
|
||||
|
||||
let active_validator_indices =
|
||||
current_state.get_active_validator_indices(block_slot.epoch(spec.slots_per_epoch));
|
||||
let validator_balances = ¤t_state.validator_balances;
|
||||
|
||||
for index in active_validator_indices {
|
||||
let balance = std::cmp::min(validator_balances[index], spec.max_deposit_amount)
|
||||
/ spec.fork_choice_balance_increment;
|
||||
let balance = std::cmp::min(current_state.balances[index], spec.max_effective_balance)
|
||||
/ spec.effective_balance_increment;
|
||||
if balance > 0 {
|
||||
if let Some(target) = self.latest_attestation_targets.get(&(index as u64)) {
|
||||
*latest_votes.entry(*target).or_insert_with(|| 0) += balance;
|
||||
|
||||
Reference in New Issue
Block a user