pending_commitment.votes -> pending_header.votes

This commit is contained in:
protolambda 2021-03-17 22:41:35 +01:00
parent 1192158848
commit be93b03cc8
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 1 deletions

View File

@ -489,7 +489,7 @@ def update_pending_votes(state: BeaconState,
return
# Requirement 2: >= 2/3 of balance attesting
participants = get_attesting_indices(state, attestation.data, pending_commitment.votes)
participants = get_attesting_indices(state, attestation.data, pending_header.votes)
participants_balance = get_total_balance(state, participants)
full_committee = get_beacon_committee(state, attestation.data.slot, attestation.data.index)
full_committee_balance = get_total_balance(state, full_committee)