Merge remote-tracking branch 'michael/state-root-summary' into tree-states

This commit is contained in:
Michael Sproul
2022-02-15 12:05:54 +11:00
11 changed files with 160 additions and 97 deletions

View File

@@ -31,7 +31,7 @@ use rayon::prelude::*;
use sensitive_url::SensitiveUrl;
use slog::Logger;
use slot_clock::TestingSlotClock;
use state_processing::{state_advance::complete_state_advance, StateRootStrategy};
use state_processing::state_advance::complete_state_advance;
use std::borrow::Cow;
use std::collections::{HashMap, HashSet};
use std::str::FromStr;
@@ -527,7 +527,7 @@ where
pub fn get_hot_state(&self, state_hash: BeaconStateHash) -> Option<BeaconState<E>> {
self.chain
.store
.load_hot_state(&state_hash.into(), StateRootStrategy::Accurate)
.load_hot_state(&state_hash.into())
.unwrap()
.map(|(state, _)| state)
}