From bb8ba9c0456a7080917cd976210fa7c355c709b2 Mon Sep 17 00:00:00 2001 From: Mikhail Kalinin Date: Mon, 25 Mar 2024 19:20:58 +0600 Subject: [PATCH] Apply suggestions from code review Co-authored-by: Lion - dapplion <35266934+dapplion@users.noreply.github.com> --- specs/_features/eip7549/validator.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specs/_features/eip7549/validator.md b/specs/_features/eip7549/validator.md index 201c41c75..98310bc6f 100644 --- a/specs/_features/eip7549/validator.md +++ b/specs/_features/eip7549/validator.md @@ -54,7 +54,7 @@ def compute_on_chain_aggregate(network_aggregates: List[Attestation]) -> Attesta #### Construct attestation - Set `attestation_data.index = 0`. -- Let `attestation.aggregation_bits` be a `Bitlist[MAX_VALIDATORS_PER_COMMITTEE]` of length `len(committee)`, where the bit of the index of the validator in the `committee` is set to `0b1`. +- Let `attestation.aggregation_bits` be a `Bitlist[MAX_VALIDATORS_PER_COMMITTEE * MAX_COMMITTEES_PER_SLOT]` of length `len(committee)`, where the bit of the index of the validator in the `committee` is set to `0b1`. - Let `attestation.committee_bits` be a `Bitvector[MAX_COMMITTEES_PER_SLOT]`, where the bit at the index associated with the validator's committee is set to `0b1`. *Note*: Calling `get_attesting_indices(state, attestation)` should return a list of length equal to 1, containing `validator_index`. @@ -64,6 +64,6 @@ def compute_on_chain_aggregate(network_aggregates: List[Attestation]) -> Attesta #### Construct aggregate - Set `attestation_data.index = 0`. -- Let `aggregation_bits` be a `Bitlist[MAX_VALIDATORS_PER_COMMITTEE]` of length `len(committee)`, where each bit set from each individual attestation is set to `0b1`. +- Let `aggregation_bits` be a `Bitlist[MAX_VALIDATORS_PER_COMMITTEE * MAX_COMMITTEES_PER_SLOT]` of length `len(committee)`, where each bit set from each individual attestation is set to `0b1`. - Set `attestation.committee_bits = committee_bits`, where `committee_bits` has the same value as in each individual attestation.