mirror of
https://github.com/sigp/lighthouse.git
synced 2026-03-10 20:22:02 +00:00
This was found in the wild on a node that was reconstructing states and had a ~350 epoch gap between finalization and the split slot. When the finalization migration ran it deleted some of the hot state summaries that were still being iterated by `load_hot_state`, causing state storage to fail and the database to become corrupt (due to the atomicity bug from `unstable`). This commit additonally adds states created from diffs to the cache. This should help avoid iterating back so far but is strictly a performance improvement and *not* a correctness fix.