mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-16 08:53:46 +00:00
Limit binary search to local height
This commit is contained in:
parent
3283fb9a88
commit
54d3cf40e5
1 changed files with 1 additions and 1 deletions
|
|
@ -815,7 +815,7 @@ func (d *Downloader) findAncestor(p *peerConnection, remoteHeader *types.Header)
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
||||||
ancestor, err = d.findAncestorBinarySearch(p, mode, remoteHeight, floor)
|
ancestor, err = d.findAncestorBinarySearch(p, mode, localHeight, floor)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return 0, err
|
return 0, err
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue