From 5f29cc91bc71cc8725c93887858580e4122b8359 Mon Sep 17 00:00:00 2001 From: Hsiao-Wei Wang Date: Thu, 31 Jan 2019 19:06:13 +0800 Subject: [PATCH 1/2] Remove the repeated checks --- specs/core/0_beacon-chain.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index aeaf6d782..109308367 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -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 From 190d9d288736ec43b833eb32ba8fb4b7aee1046c Mon Sep 17 00:00:00 2001 From: vbuterin Date: Thu, 31 Jan 2019 07:44:14 -0600 Subject: [PATCH 2/2] Added closing bracket --- specs/core/0_beacon-chain.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specs/core/0_beacon-chain.md b/specs/core/0_beacon-chain.md index 109308367..d93cb21d7 100644 --- a/specs/core/0_beacon-chain.md +++ b/specs/core/0_beacon-chain.md @@ -1742,7 +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] - 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