Skip to content

Moves startup accounts verification thread pool creation#7326

Merged
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:verify-accounts/make-thread-pool
Aug 5, 2025
Merged

Moves startup accounts verification thread pool creation#7326
brooksprumo merged 1 commit intoanza-xyz:masterfrom
brooksprumo:verify-accounts/make-thread-pool

Conversation

@brooksprumo
Copy link
Copy Markdown

Problem

AccountsDb no longer has a thread pool for hashing accounts, but accounts_db.rs is still where we create the hashing thread pool used for startup accounts verification.

Summary of Changes

Move the code for creating the thread pool into the verification fn.

@brooksprumo brooksprumo self-assigned this Aug 5, 2025
@brooksprumo brooksprumo marked this pull request as ready for review August 5, 2025 18:58
@brooksprumo brooksprumo requested a review from roryharr August 5, 2025 18:58
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Aug 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.0%. Comparing base (438a1de) to head (9f463aa).
⚠️ Report is 2677 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff            @@
##           master    #7326     +/-   ##
=========================================
- Coverage    83.0%    83.0%   -0.1%     
=========================================
  Files         801      801             
  Lines      362250   362245      -5     
=========================================
- Hits       300792   300779     -13     
- Misses      61458    61466      +8     
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Comment thread runtime/src/bank.rs
let start = Instant::now();
let thread_pool_hash = make_hash_thread_pool(num_hash_threads);
let thread_pool = {
let num_threads = accounts_db_
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Will this be moved later? This seems like it should be part of the bank now.

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.

Yes, that's the plan. Didn't want to do both in the same PR though, as moving the num_hash_threads will have a lot of plumbing changes.

@brooksprumo brooksprumo requested a review from roryharr August 5, 2025 21:01
@brooksprumo brooksprumo merged commit 3c32519 into anza-xyz:master Aug 5, 2025
41 checks passed
@brooksprumo brooksprumo deleted the verify-accounts/make-thread-pool branch August 5, 2025 22:34
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