remove verify_hash_internal_state (#6261)

This commit is contained in:
carllin 2019-10-07 16:38:54 -07:00 committed by GitHub
parent ba7efbb136
commit e12c577b16
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 4 deletions

View File

@ -136,10 +136,6 @@ pub fn add_snapshot<P: AsRef<Path>>(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