mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-04 11:03:48 +00:00
Merge pull request #206 from maticnetwork/fix-binary-search
Include upper bound in binary search
This commit is contained in:
commit
f020b88157
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
|
||||
}
|
||||
|
||||
ancestor, err = d.findAncestorBinarySearch(p, mode, localHeight, floor)
|
||||
ancestor, err = d.findAncestorBinarySearch(p, mode, localHeight+1, floor)
|
||||
if err != nil {
|
||||
return 0, err
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue