Update sync.go

This commit is contained in:
ucwong 2019-07-30 01:12:34 +08:00 committed by GitHub
parent 15fbed5197
commit 5514eca74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}