From 9b6ef5084228bd86ff49af2d2d87c0f14eec2d0f Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Wed, 8 Jun 2022 00:49:12 +0300 Subject: [PATCH] Add special case for cleaning up Gemini 1a data on purging --- crates/subspace-node/src/bin/subspace-node.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/subspace-node/src/bin/subspace-node.rs b/crates/subspace-node/src/bin/subspace-node.rs index 983cf8ce6f..4c0374bf66 100644 --- a/crates/subspace-node/src/bin/subspace-node.rs +++ b/crates/subspace-node/src/bin/subspace-node.rs @@ -223,6 +223,12 @@ fn main() -> Result<(), Error> { .join("chains") .join("subspace_test"), ); + let _ = std::fs::remove_dir_all( + base_dir + .join("subspace-node") + .join("chains") + .join("subspace_gemini_1a"), + ); } let runner = cli.create_runner(&cmd.base)?;