core, eth/downloader: fix validation flaw, fix downloader printout flaw (#17974)

This commit is contained in:
Martin Holst Swende
2018-11-07 13:47:11 +01:00
committed by Péter Szilágyi
parent dc6648bb58
commit eea3ae42a3
2 changed files with 7 additions and 6 deletions

View File

@ -740,6 +740,7 @@ func (d *Downloader) findAncestor(p *peerConnection, height uint64) (uint64, err
return 0, errBadPeer
}
start = check
hash = h
case <-timeout:
p.log.Debug("Waiting for search header timed out", "elapsed", ttl)