Skip to content

accounts-db: Remove usage of RentCollector#6781

Merged
joncinque merged 1 commit intoanza-xyz:masterfrom
joncinque:no-rc-accountsdb
Jun 30, 2025
Merged

accounts-db: Remove usage of RentCollector#6781
joncinque merged 1 commit intoanza-xyz:masterfrom
joncinque:no-rc-accountsdb

Conversation

@joncinque
Copy link
Copy Markdown

Problem

The RentCollector type is included in accounts-db types, but it's not actually used for anything.

The only place it is used is to figure out the number of slots in an epoch, so instead we pass the epoch explicitly.

Summary of changes

Remove RentCollector from types and interfaces in accounts-db.

#### Problem

The RentCollector type is included in accounts-db types, but it's not
actually used for anything.

The only place it *is* used is to figure out the number of slots in an
epoch, but it looks like that call site only ever passes in `0` anyway,
from `RentCollector::default()`.

#### Summary of changes

Remove RentCollector from types and interfaces in accounts-db.
@joncinque joncinque requested a review from brooksprumo June 30, 2025 21:17
Copy link
Copy Markdown

@brooksprumo brooksprumo left a comment

Choose a reason for hiding this comment

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

:shipit:

Thanks for the cleanup! Wasn't really that bad at all.

@codecov-commenter
Copy link
Copy Markdown

Codecov Report

Attention: Patch coverage is 75.00000% with 9 lines in your changes missing coverage. Please review.

Project coverage is 83.3%. Comparing base (528d984) to head (d7063ce).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6781   +/-   ##
=======================================
  Coverage    83.3%    83.3%           
=======================================
  Files         853      853           
  Lines      378185   378167   -18     
=======================================
+ Hits       315297   315332   +35     
+ Misses      62888    62835   -53     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@joncinque joncinque merged commit 825f16d into anza-xyz:master Jun 30, 2025
41 checks passed
@joncinque joncinque deleted the no-rc-accountsdb branch June 30, 2025 23:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants