Ensure committees are built for block processing

This commit is contained in:
Paul Hauner 2019-06-04 13:13:38 +10:00
parent 45fb11b208
commit f530f5a848
No known key found for this signature in database
GPG Key ID: 303E4494BB28068C

View File

@ -672,6 +672,8 @@ impl<T: BeaconChainTypes> BeaconChain<T> {
} }
} }
state.build_committee_cache(RelativeEpoch::Current, &T::EthSpec::spec())?;
// Apply the received block to its parent state (which has been transitioned into this // Apply the received block to its parent state (which has been transitioned into this
// slot). // slot).
if let Err(e) = per_block_processing(&mut state, &block, &T::EthSpec::spec()) { if let Err(e) = per_block_processing(&mut state, &block, &T::EthSpec::spec()) {