-
Notifications
You must be signed in to change notification settings - Fork 590
remove unused SnapshotMinimizer::ending_slot #6880
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #6880 +/- ##
=========================================
- Coverage 83.3% 83.2% -0.1%
=========================================
Files 853 852 -1
Lines 378508 376882 -1626
=========================================
- Hits 315483 313861 -1622
+ Misses 63025 63021 -4 🚀 New features to boost your workflow:
|
This can't be true. If it's the case in the code ending slot was only used for rent collection, something fundamental has broken about snapshot minimization. The whole process of minimization is to minimize a snapshot at slot N by keeping only enough state to replay until some later ending slot. edit: I see now. this removes it from |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm kinda surprised that we don't need the ending slot anymore, as I thought that would impact the accounts kept/pruned. I'll defer to @apfitzge here.
yes. snapshot minimizer doesn't need it any more. no rent update, so no end slot needed. |
@HaoranYi minor. Can you update the title to be something like:
the field name in title doesn't match the actual field name rn |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Left a minor comment about the title.
As I mentioned in a previous comment, this PR removes ending_slot
from the SnapshotMinimizer
but not from the minimization process. ending_slot
is still required to be passed into ledger-tool to figure out which accounts are touched in transactions in [snapshot_slot, ending_slot] range.
updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Problem
SnapshotMinimizer::ending_slot used to be required for snapshot_minimizer due to rent collection. Now rent collection is disabled. ending_slot is no longer needed for snapshot_minimizer.
Summary of Changes
remove ending_slot from snapshot_minimizer.
Fixes #