Skip to content

Commit

Permalink
Merge pull request #536 from ethereum/fix_attestation_sig
Browse files Browse the repository at this point in the history
Remove the repeated checks
  • Loading branch information
vbuterin committed Jan 31, 2019
2 parents 684931b + 190d9d2 commit 4cdb667
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions specs/core/0_beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -1742,10 +1742,7 @@ 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):
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

Expand Down

0 comments on commit 4cdb667

Please sign in to comment.