This commit is contained in:
tycho garen
2022-06-30 19:51:07 -04:00
parent 11456f9edf
commit 815e611c68

View File

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