diff --git a/node/node.go b/node/node.go index c752a5c68..3a5c708e5 100644 --- a/node/node.go +++ b/node/node.go @@ -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