fix attestation aggregate bitfields

This commit is contained in:
protolambda 2019-05-17 21:20:09 +02:00
parent 183e3a5153
commit 08d0ff9336
No known key found for this signature in database
GPG Key ID: EC89FDBB2B4C7623
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ def get_valid_attestation(state, slot=None, signed=False):
committee_size = len(crosslink_committee)
bitfield_length = (committee_size + 7) // 8
aggregation_bitfield = b'\xC0' + b'\x00' * (bitfield_length - 1)
aggregation_bitfield = b'\x00' * bitfield_length
custody_bitfield = b'\x00' * bitfield_length
attestation = Attestation(
aggregation_bitfield=aggregation_bitfield,