Skip to content

Commit

Permalink
Refresh stale root bank
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-solana committed Aug 12, 2022
1 parent 21fb1d3 commit 12a1dc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,7 @@ pub fn process_blockstore_from_root(
// We might be promptly restarted after bad capitalization was detected while creating newer snapshot.
// In that case, we're most likely restored from the last good snapshot and replayed up to this root.
// So again check here for the bad capitalization to avoid to continue until the next snapshot creation.
let bank = bank_forks.read().unwrap().root_bank();
bank.wait_for_startup_verification_complete();
if !bank.calculate_and_verify_capitalization(opts.accounts_db_test_hash_calculation) {
return Err(
Expand Down

0 comments on commit 12a1dc7

Please sign in to comment.