add check_hash to non-index hash calculation (#17558) (#17676)

(cherry picked from commit 55c22d3b76)

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2021-06-02 20:00:50 +00:00
committed by GitHub
parent 53e0f5d61c
commit cd974c26b6
2 changed files with 138 additions and 31 deletions

View File

@@ -1001,7 +1001,9 @@ pub fn process_accounts_package_pre(
let (hash, lamports) = AccountsDb::calculate_accounts_hash_without_index(
&accounts_package.storages,
thread_pool,
);
false,
)
.unwrap();
assert_eq!(accounts_package.expected_capitalization, lamports);