Prevent reconstruction starting prematurely (#6669)

* Prevent reconstruction starting prematurely

* Simplify condition

* Merge remote-tracking branch 'origin/release-v6.0.1' into dont-start-reconstruction-early
This commit is contained in:
Michael Sproul
2024-12-12 12:58:41 +11:00
committed by GitHub
parent b7ffcc8229
commit fc0e0ae613

View File

@@ -1037,7 +1037,9 @@ where
);
// Check for states to reconstruct (in the background).
if beacon_chain.config.reconstruct_historic_states {
if beacon_chain.config.reconstruct_historic_states
&& beacon_chain.store.get_oldest_block_slot() == 0
{
beacon_chain.store_migrator.process_reconstruction();
}