diff --git a/eth2/state_processing/src/per_slot_processing.rs b/eth2/state_processing/src/per_slot_processing.rs index 378d5dd2ee..194e0d6c93 100644 --- a/eth2/state_processing/src/per_slot_processing.rs +++ b/eth2/state_processing/src/per_slot_processing.rs @@ -1,5 +1,5 @@ use crate::*; -use tree_hash::TreeHash; +use tree_hash::{SignedRoot, TreeHash}; use types::*; #[derive(Debug, PartialEq)] @@ -38,7 +38,7 @@ fn cache_state(state: &mut BeaconState, spec: &ChainSpec) -> Result<(), Error> { state.latest_block_header.state_root = previous_slot_state_root } - let latest_block_root = Hash256::from_slice(&state.latest_block_header.tree_hash_root()[..]); + let latest_block_root = Hash256::from_slice(&state.latest_block_header.signed_root()[..]); state.set_block_root(previous_slot, latest_block_root, spec)?; // Set the state slot back to what it should be.