mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-28 10:10:34 +00:00
Provide definition for undefined index
(#608)
The `index` variable is not defined and, IMO, it's difficult to discern.
This commit is contained in:
parent
3ea0c27be0
commit
de90d4475e
@ -1900,7 +1900,7 @@ For each `index` in `previous_epoch_attester_indices`, we determine the proposer
|
||||
For every `slot in range(get_epoch_start_slot(previous_epoch), get_epoch_start_slot(current_epoch))`:
|
||||
|
||||
* Let `crosslink_committees_at_slot = get_crosslink_committees_at_slot(state, slot)`.
|
||||
* For every `(crosslink_committee, shard)` in `crosslink_committees_at_slot`:
|
||||
* For every `(crosslink_committee, shard)` in `crosslink_committees_at_slot` and every `index` in `crosslink_committee`:
|
||||
* If `index in attesting_validators(crosslink_committee)`, `state.validator_balances[index] += base_reward(state, index) * total_attesting_balance(crosslink_committee) // get_total_balance(state, crosslink_committee))`.
|
||||
* If `index not in attesting_validators(crosslink_committee)`, `state.validator_balances[index] -= base_reward(state, index)`.
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user