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 Namecoin, Groestlcoin and Elements

Țugui Dragoșa3007a64cc1b
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index d8403360..b5aa84d6 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -79,6 +79,14 @@ public enum ProtectedData: Sendable {
"Library/Application Support/Litecoin/wallets",
"Library/Application Support/Litecoin/wallet.dat",
"Library/Application Support/Dogecoin/wallet.dat",
+ "Library/Application Support/Namecoin/wallets",
+ "Library/Application Support/Namecoin/wallet.dat",
+ "Library/Application Support/Groestlcoin/wallets",
+ "Library/Application Support/Groestlcoin/wallet.dat",
+ "Library/Application Support/Liquid/wallets",
+ "Library/Application Support/Liquid/wallet.dat",
+ "Library/Application Support/Elements/wallets",
+ "Library/Application Support/Elements/wallet.dat",
"Library/Application Support/DashCore/wallets",
"Library/Application Support/DashCore/wallet.dat",
"Library/Application Support/DashCore/backups",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index 9a5fa3e0..161ae182 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -54,6 +54,14 @@ struct DesktopWalletTests {
".osmosisd/keyring-file/main.info",
".osmosisd/keyring-test/main.info",
".osmosisd/config/priv_validator_key.json",
+ "Library/Application Support/Namecoin/wallets/wallet.dat",
+ "Library/Application Support/Namecoin/wallet.dat",
+ "Library/Application Support/Groestlcoin/wallets/wallet.dat",
+ "Library/Application Support/Groestlcoin/wallet.dat",
+ "Library/Application Support/Liquid/wallets/wallet.dat",
+ "Library/Application Support/Liquid/wallet.dat",
+ "Library/Application Support/Elements/wallets/wallet.dat",
+ "Library/Application Support/Elements/wallet.dat",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()
@@ -86,6 +94,8 @@ struct DesktopWalletTests {
".config/stellar/network/testnet.toml",
".fuel/toolchains/latest-aarch64-apple-darwin/bin/forc",
".osmosisd/data/application.db/000001.log",
+ "Library/Application Support/Namecoin/blocks/blk00000.dat",
+ "Library/Application Support/Liquid/blocks/blk00000.dat",
])
func leavesWhatComesBackOnItsOwn(_ cache: String) throws {
let directory = try TemporaryDirectory()