Remove the repeated checks

This commit is contained in:
Hsiao-Wei Wang 2019-01-31 19:06:13 +08:00
parent 684931bf16
commit 5f29cc91bc
No known key found for this signature in database
GPG Key ID: 95B070122902DEA4
1 changed files with 0 additions and 3 deletions

View File

@ -1742,9 +1742,6 @@ For each `attestation` in `block.body.attestations`:
committee for committee, shard in get_crosslink_committees_at_slot(state, attestation.data.slot)
if shard == attestation.data.shard
][0]
verify_bitfield(attestation.aggregation_bitfield, len(crosslink_committee))
verify_bitfield(attestation.custody_bitfield, len(crosslink_committee))
for i in range(len(crosslink_committee):
if get_bitfield_bit(attestation.aggregation_bitfield, i) == 0b0:
assert get_bitfield_bit(attestation.custody_bitfield, i) == 0b0