Fix ledger-tool create-snapshot and add sanity test (#10212)

automerge
This commit is contained in:
Ryo Onodera
2020-05-25 00:27:36 +09:00
committed by GitHub
parent 26acd6aafa
commit 8d32441b96
2 changed files with 9 additions and 1 deletions

View File

@@ -1032,6 +1032,8 @@ fn main() {
println!("Creating a snapshot of slot {}", bank.slot());
bank.squash();
bank.clean_accounts();
bank.update_accounts_hash();
let temp_dir = tempfile::TempDir::new().unwrap_or_else(|err| {
eprintln!("Unable to create temporary directory: {}", err);