pass expected capitalization to hash calculation to improve assert msg (#15191)

* cleanup if

* pass expected capitalization to hash calculation to improve assert message

* fix bank function

* one more level

* calculate_accounts_hash_helper

* add slot to error message

* success
This commit is contained in:
Jeff Washington (jwash)
2021-02-10 14:38:00 -06:00
committed by GitHub
parent c1e93b3ef9
commit e59a24d9f9
4 changed files with 26 additions and 18 deletions

View File

@@ -108,11 +108,12 @@ fn main() {
time.stop();
let mut time_store = Measure::start("hash using store");
let results_store = accounts.accounts_db.update_accounts_hash_with_index_option(
true,
false,
false,
solana_sdk::clock::Slot::default(),
&ancestors,
true,
None,
);
time_store.stop();
if results != results_store {