From 5514eca74b98082dfa854183ae13c1509335906e Mon Sep 17 00:00:00 2001 From: ucwong Date: Tue, 30 Jul 2019 01:12:34 +0800 Subject: [PATCH] Update sync.go --- eth/sync.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eth/sync.go b/eth/sync.go index 0ba46e84a5..7157e1aefa 100644 --- a/eth/sync.go +++ b/eth/sync.go @@ -171,7 +171,7 @@ func (pm *ProtocolManager) synchronise(peer *peer) { td := pm.blockchain.GetTd(currentBlock.Hash(), currentBlock.NumberU64()) pHead, pTd := peer.Head() - if pTd := nil { + if pTd == nil { return }