Skip to content

armgit / peel

Public Imported from GitHub
0

Uninstall Mac apps with every file they leave behind, and see why each belongs. Free up space, fine-tune macOS, and set up Terminal.

Protect the wallets of Ashigaru, Bitcoin Safe and JoinMarket

Țugui Dragoș275d997be337
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 2d0ea8a2..76e4c985 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -121,6 +121,9 @@ public enum ProtectedData: Sendable {
".gingerwallet/client/WalletBackups",
".specter/wallets",
".specter/devices",
+ ".ashigaru",
+ "Library/Application Support/bitcoin_safe",
+ "Library/Application Support/joinmarket/wallets",
"Library/Application Support/Bisq/btc_mainnet/wallet",
"Library/Application Support/Bisq/btc_mainnet/keys",
"Library/Application Support/Haveno/xmr_mainnet/wallet",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index 8af5511c..26348b8e 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -68,6 +68,9 @@ struct DesktopWalletTests {
"Library/Application Support/Dcrwallet/mainnet/wallet.db",
"Library/Application Support/Dexc/mainnet/dexc.db",
"Library/Application Support/Dexc/mainnet/assetdb/btc/wallet.db",
+ ".ashigaru/config",
+ "Library/Application Support/bitcoin_safe/bitcoin/main.wallet",
+ "Library/Application Support/joinmarket/wallets/wallet.jmdat",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -105,6 +108,7 @@ struct DesktopWalletTests {
".electrum-abc/blockchain_headers",
".electrum-nmc/blockchain_headers",
"Library/Application Support/Dexc/mainnet/logs/dexc.log",
+ "Library/Application Support/joinmarket/logs/joinmarket.log",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()