From f6da88af0d4284a58e809fdbb385b73060fafde8 Mon Sep 17 00:00:00 2001 From: Roman Khimov Date: Fri, 4 Jun 2021 20:29:47 +0300 Subject: [PATCH] network: drop useless flag check It's the first thing done in tryStartServices(), so checking it here doesn't make much sense. --- pkg/network/server.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/network/server.go b/pkg/network/server.go index 560829d5d..92ade9287 100644 --- a/pkg/network/server.go +++ b/pkg/network/server.go @@ -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 {