From 7115961d848eb0be8f21699b127fd1180509412d Mon Sep 17 00:00:00 2001 From: Paul Hauner Date: Mon, 24 Jun 2019 07:25:01 +1000 Subject: [PATCH] Ensure current epoch committee is built in test --- tests/ef_tests/src/cases/sanity_blocks.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/ef_tests/src/cases/sanity_blocks.rs b/tests/ef_tests/src/cases/sanity_blocks.rs index 91824f48d..bbd4abbad 100644 --- a/tests/ef_tests/src/cases/sanity_blocks.rs +++ b/tests/ef_tests/src/cases/sanity_blocks.rs @@ -3,7 +3,7 @@ use crate::bls_setting::BlsSetting; use crate::case_result::compare_beacon_state_results_without_caches; use serde_derive::Deserialize; use state_processing::{per_block_processing, per_slot_processing}; -use types::{BeaconBlock, BeaconState, EthSpec}; +use types::{BeaconBlock, BeaconState, EthSpec, RelativeEpoch}; #[derive(Debug, Clone, Deserialize)] pub struct SanityBlocks { @@ -54,6 +54,11 @@ impl Case for SanityBlocks { while state.slot < block.slot { per_slot_processing(&mut state, spec).unwrap(); } + + state + .build_committee_cache(RelativeEpoch::Current, spec) + .unwrap(); + per_block_processing(&mut state, block, spec) }) .map(|_| state);