mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 13:06:34 +00:00
Update specs/altair/beacon-chain.md
This commit is contained in:
parent
3cd842a94d
commit
b0500c3de1
@ -579,7 +579,7 @@ def process_sync_committee(state: BeaconState, aggregate: SyncAggregate) -> None
|
|||||||
# Apply participant and proposer rewards
|
# Apply participant and proposer rewards
|
||||||
all_pubkeys = [v.pubkey for v in state.validators]
|
all_pubkeys = [v.pubkey for v in state.validators]
|
||||||
committee_indices = [ValidatorIndex(all_pubkeys.index(pubkey)) for pubkey in state.current_sync_committee.pubkeys]
|
committee_indices = [ValidatorIndex(all_pubkeys.index(pubkey)) for pubkey in state.current_sync_committee.pubkeys]
|
||||||
for index, participation_bit in zip(committee_indices, aggregate.sync_committee_bits):
|
for participant_index, participation_bit in zip(committee_indices, aggregate.sync_committee_bits):
|
||||||
if participation_bit:
|
if participation_bit:
|
||||||
increase_balance(state, participant_index, participant_reward)
|
increase_balance(state, participant_index, participant_reward)
|
||||||
increase_balance(state, get_beacon_proposer_index(state), proposer_reward)
|
increase_balance(state, get_beacon_proposer_index(state), proposer_reward)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user