// Cleans the storage cache and logs public static bool cleanCacheAndLogs() { ActivityStorage.deleteCache(); PeerStorage.deletePeersFile(); Logging.clear(); Logging.info("Cleaned cache and logs."); return(true); }
// Cleans the storage cache and logs public static bool cleanCacheAndLogs() { ActivityStorage.deleteCache(); // deleting block storage is a special case // we have to instantiate whatever implementation we are using and remove its data files /*storage = IStorage.create(Config.blockStorageProvider); * storage.deleteData();*/ Storage.deleteCache(); WalletStateStorage.deleteCache(); PeerStorage.deletePeersFile(); Logging.clear(); Logging.info("Cleaned cache and logs."); return(true); }