diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index a6bf87acbd22..5132da42ae62 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -815,7 +815,7 @@ func (d *Downloader) findAncestor(p *peerConnection, remoteHeader *types.Header) return 0, err } - ancestor, err = d.findAncestorBinarySearch(p, mode, remoteHeight, floor) + ancestor, err = d.findAncestorBinarySearch(p, mode, localHeight, floor) if err != nil { return 0, err }