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

This commit is contained in:
Jeff Washington (jwash)
2021-05-28 10:24:40 -05:00
committed by GitHub
parent 7cf6e66ddd
commit 55c22d3b76
2 changed files with 138 additions and 31 deletions

View File

@@ -1002,7 +1002,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);