Ensure committee cache is build during attn proc

This commit is contained in:
Paul Hauner 2019-08-09 12:32:32 +10:00
parent d191812d4b
commit 67fe21c1c0
No known key found for this signature in database
GPG Key ID: 5E2CFF9B75FA63DF

View File

@ -590,6 +590,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
per_slot_processing(&mut state, &self.spec)?;
}
state.build_committee_cache(RelativeEpoch::Current, &self.spec)?;
let attestation_slot = state.get_attestation_data_slot(&attestation.data)?;
// Reject any attestation where the `state` loaded from `data.beacon_block_root`