fix union value retrieval, thanks @terencechain

This commit is contained in:
protolambda 2021-07-28 22:00:23 +02:00
parent d47d2f92cc
commit 0daaafbc98
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 1 deletions

View File

@ -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,