aboutsummaryrefslogtreecommitdiffstats
path: root/eth/handler.go
diff options
context:
space:
mode:
authorZsolt Felfoldi <zsfelfoldi@gmail.com>2017-01-23 09:35:46 +0800
committerZsolt Felfoldi <zsfelfoldi@gmail.com>2017-01-26 11:23:53 +0800
commit12379c697aa72f4ce08733638e6f7e5dcdf3f94f (patch)
treec3f44e91386e0eb8fcd64a7ebdf5cf9ef20991df /eth/handler.go
parentf5348e17f8d487a7bd34ccef6dcb6dc376407f40 (diff)
downloaddexon-12379c697aa72f4ce08733638e6f7e5dcdf3f94f.tar
dexon-12379c697aa72f4ce08733638e6f7e5dcdf3f94f.tar.gz
dexon-12379c697aa72f4ce08733638e6f7e5dcdf3f94f.tar.bz2
dexon-12379c697aa72f4ce08733638e6f7e5dcdf3f94f.tar.lz
dexon-12379c697aa72f4ce08733638e6f7e5dcdf3f94f.tar.xz
dexon-12379c697aa72f4ce08733638e6f7e5dcdf3f94f.tar.zst
dexon-12379c697aa72f4ce08733638e6f7e5dcdf3f94f.zip
les: remove delayed les server starting
Diffstat (limited to 'eth/handler.go')
-rw-r--r--eth/handler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/eth/handler.go b/eth/handler.go
index 63ba0821f..e03c89149 100644
--- a/eth/handler.go
+++ b/eth/handler.go
@@ -173,7 +173,7 @@ func NewProtocolManager(config *params.ChainConfig, fastSync bool, networkId int
return blockchain.CurrentBlock().NumberU64()
}
inserter := func(blocks types.Blocks) (int, error) {
- manager.setSynced() // Mark initial sync done on any fetcher import
+ atomic.StoreUint32(&manager.synced, 1) // Mark initial sync done on any fetcher import
return manager.insertChain(blocks)
}
manager.fetcher = fetcher.New(blockchain.GetBlockByHash, validator, manager.BroadcastBlock, heighter, inserter, manager.removePeer)