Skip to content

Removes is_accounts_lt_hash_enabled()#7008

Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:lthash/215/is_enabled
Jul 17, 2025
Merged

Removes is_accounts_lt_hash_enabled()#7008
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:lthash/215/is_enabled

Conversation

@brooksprumo
Copy link
Copy Markdown

Problem

The fn Bank::is_accounts_lt_hash_enabled() always returns true. It can be removed and have its callers cleaned up.

Summary of Changes

Remove it and clean up callers.

Comment on lines -20 to -23
/// Returns if the accounts lt hash is enabled
pub fn is_accounts_lt_hash_enabled(&self) -> bool {
true
}
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Main change.

Comment thread runtime/src/bank.rs
Comment on lines -483 to -484
// When removing the accounts lt hash featurization code, also remove this Option wrapper
pub accounts_lt_hash: Option<AccountsLtHash>,
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

This was the other main fallout. We always have an AccountsLtHash now.

@brooksprumo brooksprumo moved this to In Progress in Accounts Lt Hash Jul 17, 2025
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Jul 17, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.2%. Comparing base (e3cff78) to head (6f7c9ef).
⚠️ Report is 2885 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #7008     +/-   ##
=========================================
- Coverage    83.2%    83.2%   -0.1%     
=========================================
  Files         853      853             
  Lines      375105   375074     -31     
=========================================
- Hits       312275   312217     -58     
- Misses      62830    62857     +27     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@brooksprumo brooksprumo marked this pull request as ready for review July 17, 2025 04:02
@brooksprumo brooksprumo requested review from HaoranYi and roryharr July 17, 2025 04:02
Copy link
Copy Markdown

@HaoranYi HaoranYi left a comment

Choose a reason for hiding this comment

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

lgtm.

@brooksprumo brooksprumo merged commit 0ebc66c into anza-xyz:master Jul 17, 2025
41 checks passed
@github-project-automation github-project-automation Bot moved this from In Progress to Done in Accounts Lt Hash Jul 17, 2025
@brooksprumo brooksprumo deleted the lthash/215/is_enabled branch July 17, 2025 17:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

No open projects
Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants