mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-01-29 20:05:21 +00:00
Update 0_beacon-chain.md
This commit is contained in:
parent
1d76ad65ec
commit
180c8a0e72
@ -1099,7 +1099,7 @@ def verify_bitfield(bitfield: bytes, committee_size: int) -> bool:
|
||||
if len(bitfield) != (committee_size + 7) // 8:
|
||||
return False
|
||||
|
||||
# Check if `bitfield` has padding zeros
|
||||
# Check `bitfield` is padded with zero bits only
|
||||
for i in range(committee_size, len(bitfield) * 8):
|
||||
if get_bitfield_bit(bitfield, i) == 0b1:
|
||||
return False
|
||||
|
Loading…
x
Reference in New Issue
Block a user