mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-15 16:33:47 +00:00
Merge pull request #202 from maticnetwork/feature-hot-fix-memory
Limit binary search to local height
This commit is contained in:
commit
12c2a3f907
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