Skip to content

Commit fc0e0ae

Browse files
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
1 parent b7ffcc8 commit fc0e0ae

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

beacon_node/beacon_chain/src/builder.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1037,7 +1037,9 @@ where
10371037
);
10381038

10391039
// Check for states to reconstruct (in the background).
1040-
if beacon_chain.config.reconstruct_historic_states {
1040+
if beacon_chain.config.reconstruct_historic_states
1041+
&& beacon_chain.store.get_oldest_block_slot() == 0
1042+
{
10411043
beacon_chain.store_migrator.process_reconstruction();
10421044
}
10431045

0 commit comments

Comments
 (0)