Use committe_len in test_harness

This commit is contained in:
Paul Hauner
2019-03-30 17:31:58 +11:00
parent ed6d0b46d0
commit 64507950dd

View File

@@ -178,8 +178,8 @@ impl BeaconChainHarness {
agg_sig
};
let mut aggregation_bitfield = Bitfield::with_capacity(committee.committee.len());
let custody_bitfield = Bitfield::with_capacity(committee.committee.len());
let mut aggregation_bitfield = Bitfield::with_capacity(duties.committee_len);
let custody_bitfield = Bitfield::with_capacity(duties.committee_len);
aggregation_bitfield.set(duties.committee_index, true);