diff options
author | Felix Lange <fjl@users.noreply.github.com> | 2017-02-01 09:03:43 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-01 09:03:43 +0800 |
commit | 9c45b4462c2453c0c92282290d9788aecf556798 (patch) | |
tree | 8746adcd24b48828a665b84ab87916e06df118ed /eth/handler.go | |
parent | 690f6ea1d74f949d4830d3a38c786510fc43d37c (diff) | |
parent | a390ca5f30e871715f28937a02e87fff050b0c75 (diff) | |
download | dexon-9c45b4462c2453c0c92282290d9788aecf556798.tar dexon-9c45b4462c2453c0c92282290d9788aecf556798.tar.gz dexon-9c45b4462c2453c0c92282290d9788aecf556798.tar.bz2 dexon-9c45b4462c2453c0c92282290d9788aecf556798.tar.lz dexon-9c45b4462c2453c0c92282290d9788aecf556798.tar.xz dexon-9c45b4462c2453c0c92282290d9788aecf556798.tar.zst dexon-9c45b4462c2453c0c92282290d9788aecf556798.zip |
Merge pull request #3607 from zsfelfoldi/light-fix2
les: fix private net issues, enable adding peers manually again
Diffstat (limited to 'eth/handler.go')
-rw-r--r-- | eth/handler.go | 2 |
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) |