Merge pull request #1997 from nspcc-dev/drop-syncreached-check

network: drop useless flag check
This commit is contained in:
Roman Khimov 2021-06-04 23:39:34 +03:00 committed by GitHub
commit 1cea0dd894
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -172,9 +172,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()
}
})
if config.StateRootCfg.Enabled && chain.GetConfig().StateRootInHeader {