From 0daaafbc98e32925120fb4a22665286548e70988 Mon Sep 17 00:00:00 2001 From: protolambda Date: Wed, 28 Jul 2021 22:00:23 +0200 Subject: [PATCH] fix union value retrieval, thanks @terencechain --- specs/sharding/beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/sharding/beacon-chain.md b/specs/sharding/beacon-chain.md index 93ac2278a..25c3423b7 100644 --- a/specs/sharding/beacon-chain.md +++ b/specs/sharding/beacon-chain.md @@ -618,7 +618,7 @@ def process_attested_shard_work(state: BeaconState, attestation: Attestation) -> if committee_work.status.selector != SHARD_WORK_PENDING: # If the data was already confirmed, check if this matches, to apply the flag to the attesters. if committee_work.status.selector == SHARD_WORK_CONFIRMED: - attested: AttestedDataCommitment = current_headers[header_index] + attested: AttestedDataCommitment = committee_work.status.value if attested.root == attestation.data.shard_blob_root: batch_apply_participation_flag(state, attestation.aggregation_bits, attestation.data.target.epoch,