Update error that results when snapshot is missing (#24839)

This commit is contained in:
Will Hickey 2022-06-21 13:06:37 -05:00 committed by GitHub
parent aea84e699c
commit 3096b64f9d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -104,7 +104,10 @@ pub fn load_bank_forks(
{ {
true true
} else { } else {
info!("No snapshot package available; will load from genesis"); warn!(
"No snapshot package found in directory: {:?}; will load from genesis",
&snapshot_config.full_snapshot_archives_dir
);
false false
} }
} else { } else {

View File

@ -1114,7 +1114,7 @@ fn process_bank_0(
None, None,
&mut ExecuteTimings::default(), &mut ExecuteTimings::default(),
) )
.expect("processing for bank 0 must succeed"); .expect("Failed to process bank 0 from ledger. Did you forget to provide a snapshot?");
bank0.freeze(); bank0.freeze();
if blockstore.is_primary_access() { if blockstore.is_primary_access() {
blockstore.insert_bank_hash(bank0.slot(), bank0.hash(), false); blockstore.insert_bank_hash(bank0.slot(), bank0.hash(), false);