Skip to content

Commit

Permalink
Merge pull request #1308 from ethereum/val-fix
Browse files Browse the repository at this point in the history
MAX_INDICES_PER_ATTESTATION -> MAX_VALIDATORS_PER_COMMITTEE
  • Loading branch information
djrtwo authored Jul 22, 2019
2 parents 7bc4fb6 + a90d273 commit 5efdbb4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions specs/validator/0_beacon-chain-validator.md
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,13 @@ Set `attestation.data = attestation_data` where `attestation_data` is the `Attes

##### Aggregation bits

- Let `attestation.aggregation_bits` be a `Bitlist[MAX_INDICES_PER_ATTESTATION]` where the bits at the index in the aggregated validator's `committee` is set to `0b1`.
- Let `attestation.aggregation_bits` be a `Bitlist[MAX_VALIDATORS_PER_COMMITTEE]` where the bits at the index in the aggregated validator's `committee` is set to `0b1`.

*Note*: Calling `get_attesting_indices(state, attestation.data, attestation.aggregation_bits)` should return a list of length equal to 1, containing `validator_index`.

##### Custody bits

- Let `attestation.custody_bits` be a `Bitlist[MAX_INDICES_PER_ATTESTATION]` filled with zeros of length `len(committee)`.
- Let `attestation.custody_bits` be a `Bitlist[MAX_VALIDATORS_PER_COMMITTEE]` filled with zeros of length `len(committee)`.

*Note*: This is a stub for Phase 0.

Expand Down

0 comments on commit 5efdbb4

Please sign in to comment.