Skip to content

Commit

Permalink
Prevent reconstruction starting prematurely (#6669)
Browse files Browse the repository at this point in the history
Squashed commit of the following:

commit fa6fadd
Author: Michael Sproul <[email protected]>
Date:   Mon Dec 9 11:30:49 2024 +1100

    Prevent reconstruction starting prematurely
  • Loading branch information
michaelsproul committed Dec 9, 2024
1 parent 886d409 commit b9a723b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion beacon_node/beacon_chain/src/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1037,7 +1037,10 @@ 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.genesis_backfill_slot == 0
&& beacon_chain.store.get_oldest_block_slot() == 0
{
beacon_chain.store_migrator.process_reconstruction();
}

Expand Down

0 comments on commit b9a723b

Please sign in to comment.