wait for bg hash calc to complete before 'calculate_capitalization' (#27145)

This commit is contained in:
Jeff Washington (jwash) 2022-08-15 11:47:54 -05:00 committed by GitHub
parent f76f8d5d41
commit 3ad93c84b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -794,6 +794,9 @@ impl Accounts {
) -> u64 {
let use_index = false;
let is_startup = true;
self.accounts_db
.verify_accounts_hash_in_bg
.wait_for_complete();
self.accounts_db
.update_accounts_hash_with_index_option(
use_index,