From d372c96b629dd4d2b2a137a022b7b69abee6209e Mon Sep 17 00:00:00 2001 From: "Jeff Washington (jwash)" Date: Mon, 15 Aug 2022 08:29:24 -0500 Subject: [PATCH] wait for bg hash calc to complete before 'calculate_capitalization' --- runtime/src/accounts.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/runtime/src/accounts.rs b/runtime/src/accounts.rs index ae08342c057dea..9c7838938a5fa8 100644 --- a/runtime/src/accounts.rs +++ b/runtime/src/accounts.rs @@ -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,