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

* 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

        (cherry picked from commit e59a24d9f9)

Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
This commit is contained in:
mergify[bot]
2021-02-24 17:13:16 +00:00
committed by GitHub
parent abfae5d46a
commit 7f9d5ac383
4 changed files with 26 additions and 18 deletions

View File

@@ -109,11 +109,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 {