mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-24 07:14:46 +00:00
Load all states relative to finalized state
This commit is contained in:
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user