blocksync: drop support for enabled=false (#8912)

This commit is contained in:
Sam Kleinman
2022-07-14 13:19:12 -04:00
committed by GitHub
parent 7971514b55
commit f8d15fc682
6 changed files with 22 additions and 33 deletions

View File

@@ -338,6 +338,10 @@ func createBlockchainReactor(
metrics *consensus.Metrics,
) (*p2p.ReactorShim, service.Service, error) {
if !cfg.BlockSync.Enable {
logger.Error("blocksync.enable = false, but Tendermint no longer allows blocksync to be disabled. This setting is now ignored and will be removed in the next version.")
}
logger = logger.With("module", "blockchain")
switch cfg.BlockSync.Version {