This commit is contained in:
Yoni 2019-01-12 21:24:31 +02:00
parent 51ad711063
commit b39ce8d328

View file

@ -196,7 +196,7 @@ impl<T: PMMRable> PMMRBackend<T> {
// Check for a ... (3 dot) ending version of the file - could probably be removed after mainnet
let compatible_snapshot_path = PathBuf::from(leaf_snapshot_path.clone() + "...");
if compatible_snapshot_path.exists() {
LeafSet::copy_snapshot(&leaf_set_path, &compaitble_snapshot_path)?;
LeafSet::copy_snapshot(&leaf_set_path, &compatible_snapshot_path)?;
} else {
LeafSet::copy_snapshot(&leaf_set_path, &PathBuf::from(leaf_snapshot_path))?;
}