Skip to content
This repository has been archived by the owner on Jul 1, 2021. It is now read-only.

Commit

Permalink
Bring is_shard_matched check back
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed May 2, 2019
1 parent 95a8f3c commit 0f94d8f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions eth2/beacon/epoch_processing_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,9 @@ def _filter_attestations_by_latest_crosslinks_and_shard(
shard: Shard) -> Iterable[PendingAttestationRecord]:
for attestation in attestations:
is_latest_crosslink_matched = attestation.data.previous_crosslink == latest_crosslink
# is_shard_matched = attestation.data.shard == shard
# TODO: Now use the wrong one for fixture tests, need to change it back in v0.6.0
is_shard_matched = True
# NOTE: v0.5.1 doesn't check is_shard_matched but it's fixed in v0.6.0
# We implemented ahead here.
is_shard_matched = attestation.data.shard == shard
if is_latest_crosslink_matched and is_shard_matched:
yield attestation

Expand Down

0 comments on commit 0f94d8f

Please sign in to comment.