network: drop useless flag check

It's the first thing done in tryStartServices(), so checking it here doesn't
make much sense.
This commit is contained in:
Roman Khimov 2021-06-04 20:29:47 +03:00
parent ed6652bf1f
commit f6da88af0d

View file

@ -171,9 +171,7 @@ func newServerFromConstructors(config ServerConfig, chain blockchainer.Blockchai
return nil, errors.New("P2PSigExtensions are disabled, but Notary service is enable")
}
s.bQueue = newBlockQueue(maxBlockBatch, chain, log, func(b *block.Block) {
if !s.syncReached.Load() {
s.tryStartServices()
}
s.tryStartServices()
})
if config.StateRootCfg.Enabled && chain.GetConfig().StateRootInHeader {