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 }