blocksync: log on disabled override

This commit is contained in:
tycho garen
2022-06-30 12:53:56 -04:00
parent e2d2c04aac
commit 288cb31040

View File

@@ -338,6 +338,10 @@ func createBlockchainReactor(
metrics *consensus.Metrics,
) (*p2p.ReactorShim, service.Service, error) {
if !cfg.BlockSync.Enable {
logger.Error("Blocksync is disabled in the config, but this is not a supported configuration, overriding")
}
logger = logger.With("module", "blockchain")
switch cfg.BlockSync.Version {