mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-03 01:54:59 -05:00
Merge pull request #513 from ethereum/JustinDrake-patch-1
Stricter aggregation_bitfield validation
This commit is contained in:
@@ -1606,6 +1606,7 @@ For each `attestation` in `block.body.attestations`:
|
||||
|
||||
```python
|
||||
assert attestation.custody_bitfield == b'\x00' * len(attestation.custody_bitfield) # [TO BE REMOVED IN PHASE 1]
|
||||
assert attestation.aggregation_bitfield != b'\x00' * len(attestation.aggregation_bitfield)
|
||||
|
||||
for i in range(len(crosslink_committee)):
|
||||
if get_bitfield_bit(attestation.aggregation_bitfield) == 0b0:
|
||||
|
||||
Reference in New Issue
Block a user