Skip to content

Commit

Permalink
Attempt to skip redundant startup account verification (#26999)
Browse files Browse the repository at this point in the history
  • Loading branch information
bw-solana authored Aug 25, 2022
1 parent 5a100ab commit 5150877
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions ledger/src/blockstore_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,12 +853,8 @@ 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.
if !bank_forks
.read()
.unwrap()
.root_bank()
.calculate_and_verify_capitalization(debug_verify)
{
let bank = bank_forks.read().unwrap().root_bank();
if start_slot != bank.slot() && !bank.calculate_and_verify_capitalization(debug_verify) {
return Err(
BlockstoreProcessorError::RootBankWithMismatchedCapitalization(
bank_forks.read().unwrap().root(),
Expand Down

0 comments on commit 5150877

Please sign in to comment.