Load all states relative to finalized state

This commit is contained in:
Michael Sproul
2022-02-15 15:37:24 +11:00
parent b8709fdcab
commit e86cff2f8b
7 changed files with 58 additions and 119 deletions

View File

@@ -92,6 +92,12 @@ impl<E: EthSpec> StateCache<E> {
return Ok(true);
}
// FIXME(sproul): remove zis
assert!(
!state.has_pending_mutations(),
"what are you doing putting these filthy states in here?"
);
// Insert the full state into the cache.
self.states.put(state_root, state.clone());