diff --git a/ledger/src/snapshot_utils.rs b/ledger/src/snapshot_utils.rs index d8ed2da345..4b8b17d175 100644 --- a/ledger/src/snapshot_utils.rs +++ b/ledger/src/snapshot_utils.rs @@ -459,7 +459,7 @@ pub fn bank_from_archive>( )?; if !bank.verify_snapshot_bank() { - panic!("Snapshot bank failed to verify"); + panic!("Snapshot bank for slot {} failed to verify", bank.slot()); } measure.stop(); info!("{}", measure); @@ -532,7 +532,7 @@ where ))); } }; - // Rebuild accounts + info!("Rebuilding accounts..."); bank.set_bank_rc( bank::BankRc::new(account_paths.to_vec(), 0, bank.slot()), bank::StatusCacheRc::default(), @@ -548,16 +548,16 @@ where &status_cache_path, MAX_SNAPSHOT_DATA_FILE_SIZE, |stream| { - // Rebuild status cache + info!("Rebuilding status cache..."); let slot_deltas: Vec>> = deserialize_from_snapshot(stream)?; - Ok(slot_deltas) }, )?; bank.src.append(&slot_deltas); + info!("Loaded bank for slot: {}", bank.slot()); Ok(bank) } diff --git a/runtime/src/bank.rs b/runtime/src/bank.rs index 7a3ed870b1..a8fec906a0 100644 --- a/runtime/src/bank.rs +++ b/runtime/src/bank.rs @@ -1824,7 +1824,7 @@ impl Bank { } /// Recalculate the hash_internal_state from the account stores. Would be used to verify a - /// snaphsot. + /// snapshot. pub fn verify_hash_internal_state(&self) -> bool { self.rc .accounts