Skip to content

Commit

Permalink
Merge pull request ethereum#202 from maticnetwork/feature-hot-fix-memory
Browse files Browse the repository at this point in the history
Limit binary search to local height
  • Loading branch information
ssandeep authored Oct 8, 2021
2 parents a9c71ef + 54d3cf4 commit 12c2a3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eth/downloader/downloader.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 12c2a3f

Please sign in to comment.