mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2025-01-25 15:14:48 +00:00
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:
parent
ed6652bf1f
commit
f6da88af0d
1 changed files with 1 additions and 3 deletions
|
@ -171,9 +171,7 @@ func newServerFromConstructors(config ServerConfig, chain blockchainer.Blockchai
|
||||||
return nil, errors.New("P2PSigExtensions are disabled, but Notary service is enable")
|
return nil, errors.New("P2PSigExtensions are disabled, but Notary service is enable")
|
||||||
}
|
}
|
||||||
s.bQueue = newBlockQueue(maxBlockBatch, chain, log, func(b *block.Block) {
|
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 {
|
if config.StateRootCfg.Enabled && chain.GetConfig().StateRootInHeader {
|
||||||
|
|
Loading…
Reference in a new issue