This commit is contained in:
tycho garen
2022-07-05 09:43:52 -04:00
parent 3940d64ba6
commit 91b32b93cd

View File

@@ -222,7 +222,7 @@ func makeNode(cfg *config.Config,
}
// Determine whether we should attempt state sync.
stateSync := !onlyValidatorIsUs(state, pubKey)
stateSync := cfg.StateSync.Enable && !onlyValidatorIsUs(state, pubKey)
if stateSync && state.LastBlockHeight > 0 {
logger.Info("Found local state with non-zero height, skipping state sync")
stateSync = false