From e12c577b16b7c6da14c16cbe010710e22725271e Mon Sep 17 00:00:00 2001 From: carllin Date: Mon, 7 Oct 2019 16:38:54 -0700 Subject: [PATCH] remove verify_hash_internal_state (#6261) --- core/src/snapshot_utils.rs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/core/src/snapshot_utils.rs b/core/src/snapshot_utils.rs index c9803848c3..1f1ba32174 100644 --- a/core/src/snapshot_utils.rs +++ b/core/src/snapshot_utils.rs @@ -136,10 +136,6 @@ pub fn add_snapshot>(snapshot_path: P, bank: &Bank) -> Result<()> bank.slot(), snapshot_file_path, ); - if !bank.verify_hash_internal_state() { - // Sanity check that the new snapshot is valid. If not then there's a bad bug somewhere - panic!("Snapshot bank failed to verify"); - } let snapshot_file = File::create(&snapshot_file_path)?; // snapshot writer