Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(pruner): fix find algo so that it does not pass a malformed range into GetRangeByHeight call #3828

Merged
merged 6 commits into from
Oct 28, 2024

Conversation

renaynay
Copy link
Member

@renaynay renaynay commented Oct 8, 2024

Fixes #3823

@renaynay renaynay changed the title fix(pruner): fix find algo so that it does not pass a malformed range into `Get fix(pruner): fix find algo so that it does not pass a malformed range into GetRangeByHeight call Oct 8, 2024
@renaynay renaynay self-assigned this Oct 8, 2024
@renaynay renaynay added the kind:fix Attached to bug-fixing PRs label Oct 8, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.29%. Comparing base (2469e7a) to head (7ccd7c2).
Report is 363 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #3828      +/-   ##
==========================================
+ Coverage   44.83%   45.29%   +0.45%     
==========================================
  Files         265      311      +46     
  Lines       14620    21884    +7264     
==========================================
+ Hits         6555     9912    +3357     
- Misses       7313    10915    +3602     
- Partials      752     1057     +305     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

vgonkivs
vgonkivs previously approved these changes Oct 9, 2024
cristaloleg
cristaloleg previously approved these changes Oct 9, 2024
Copy link
Member

@walldiss walldiss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would benefit from unit test

pruner/find.go Show resolved Hide resolved
vgonkivs
vgonkivs previously approved these changes Oct 17, 2024
pruner/find.go Outdated Show resolved Hide resolved
pruner/find.go Outdated Show resolved Hide resolved
pruner/find.go Outdated Show resolved Hide resolved
…ffHeight+1` as the `to` parameter for the call down to GetRangeByHeight -- this will ensure `estimatedCutoffHeight` is included in returned range
Copy link
Contributor

@cristaloleg cristaloleg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SGTM

@renaynay renaynay enabled auto-merge (squash) October 28, 2024 14:59
@renaynay renaynay merged commit 097fcab into celestiaorg:main Oct 28, 2024
22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:fix Attached to bug-fixing PRs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ERROR pruner/service
5 participants