* ledger tool limit_load_slot_count_from_snapshot avoids assert failures (#17974)
(cherry picked from commit dbd4dc04b0
)
# Conflicts:
# core/tests/snapshots.rs
# ledger/src/blockstore_processor.rs
# runtime/benches/accounts.rs
# runtime/src/bank.rs
* fix merge errors
Co-authored-by: Jeff Washington (jwash) <75863576+jeffwashington@users.noreply.github.com>
Co-authored-by: Jeff Washington (jwash) <wash678@gmail.com>
This commit is contained in:
@@ -650,7 +650,9 @@ pub fn bank_from_archive<P: AsRef<Path>>(
|
||||
measure.stop();
|
||||
|
||||
let mut verify = Measure::start("verify");
|
||||
if !bank.verify_snapshot_bank(test_hash_calculation) {
|
||||
if !bank.verify_snapshot_bank(test_hash_calculation)
|
||||
&& limit_load_slot_count_from_snapshot.is_none()
|
||||
{
|
||||
panic!("Snapshot bank for slot {} failed to verify", bank.slot());
|
||||
}
|
||||
verify.stop();
|
||||
|
Reference in New Issue
Block a user