From a13d4af36665596fe99ec3589b0437df0eb4ab8d Mon Sep 17 00:00:00 2001 From: Nazar Mokrynskyi Date: Sat, 29 Jul 2023 14:45:05 +0300 Subject: [PATCH] Fix wiping shared data on farmer --- crates/subspace-farmer/src/bin/subspace-farmer/main.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/crates/subspace-farmer/src/bin/subspace-farmer/main.rs b/crates/subspace-farmer/src/bin/subspace-farmer/main.rs index fa7295bebc..9673bfeeb3 100644 --- a/crates/subspace-farmer/src/bin/subspace-farmer/main.rs +++ b/crates/subspace-farmer/src/bin/subspace-farmer/main.rs @@ -249,6 +249,12 @@ async fn main() -> Result<()> { match command.subcommand { Subcommand::Wipe => { + // TODO: Delete this section once we don't have shared data anymore + info!("Wiping shared data"); + fs::remove_file(base_path.join("known_addresses_db"))?; + fs::remove_file(base_path.join("piece_cache_db"))?; + fs::remove_file(base_path.join("providers_db"))?; + let disk_farms = if command.farm.is_empty() { if !base_path.exists() { info!("Done");