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 Decred wallets of dcrwallet and Bison Wallet

Țugui Dragoș1d96a023efb2
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 3ca455b1..2d0ea8a2 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -179,6 +179,9 @@ public enum ProtectedData: Sendable {
".osmosisd/config/priv_validator_key.json",
"Library/Application Support/Daedalus Mainnet/wallets",
"Library/Application Support/decrediton/wallets",
+ "Library/Application Support/Dcrwallet/mainnet/wallet.db",
+ "Library/Application Support/Dexc/mainnet/dexc.db",
+ "Library/Application Support/Dexc/mainnet/assetdb",
".chia_keys",
".grin/main/wallet_data",
".kaspa",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index e458e47b..8af5511c 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -65,6 +65,9 @@ struct DesktopWalletTests {
".electrum-abc/wallets/default_wallet",
".electrum-sv/wallets/default_wallet",
".electrum-nmc/wallets/default_wallet",
+ "Library/Application Support/Dcrwallet/mainnet/wallet.db",
+ "Library/Application Support/Dexc/mainnet/dexc.db",
+ "Library/Application Support/Dexc/mainnet/assetdb/btc/wallet.db",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -101,6 +104,7 @@ struct DesktopWalletTests {
"Library/Application Support/Liquid/blocks/blk00000.dat",
".electrum-abc/blockchain_headers",
".electrum-nmc/blockchain_headers",
+ "Library/Application Support/Dexc/mainnet/logs/dexc.log",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()