Add committee_index to aggregator

Fixes a bug where the validator index bit was set on the bitfield,
instead of the committee index
This commit is contained in:
Paul Hauner
2019-01-31 14:16:28 +11:00
parent 5ec9d82e40
commit ae39a24e71
6 changed files with 48 additions and 31 deletions

View File

@@ -27,7 +27,7 @@ where
self.attestation_aggregator
.write()
.expect("Aggregator unlock failed.")
.process_free_attestation(&state, &free_attestation)
.process_free_attestation(&state, &free_attestation, &self.spec)
.map_err(|e| e.into())
}
}