calculate_capitalization uses hash calculation (#17443) (#17932)

* calculate_capitalization uses hash calculation

* feedback

* remove debugging code, clean up slot math

Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
This commit is contained in:
mergify[bot]
2021-06-15 05:03:06 +00:00
committed by GitHub
parent 15b2f280e3
commit d6f17517cb
10 changed files with 194 additions and 61 deletions

View File

@@ -729,7 +729,8 @@ fn open_genesis_config_by(ledger_path: &Path, matches: &ArgMatches<'_>) -> Genes
}
fn assert_capitalization(bank: &Bank) {
assert!(bank.calculate_and_verify_capitalization());
let debug_verify = true;
assert!(bank.calculate_and_verify_capitalization(debug_verify));
}
#[allow(clippy::cognitive_complexity)]