From 08d0ff9336df627ec67bafc3bee538079b15be51 Mon Sep 17 00:00:00 2001 From: protolambda Date: Fri, 17 May 2019 21:20:09 +0200 Subject: [PATCH] fix attestation aggregate bitfields --- test_libs/pyspec/eth2spec/test/helpers/attestations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test_libs/pyspec/eth2spec/test/helpers/attestations.py b/test_libs/pyspec/eth2spec/test/helpers/attestations.py index 8b667f27d..9e00489a7 100644 --- a/test_libs/pyspec/eth2spec/test/helpers/attestations.py +++ b/test_libs/pyspec/eth2spec/test/helpers/attestations.py @@ -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,