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 Eclair's seeds and channel database

Țugui Dragoșabe228c859f9
diff --git a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
index 1fb224e0..47dda780 100644
--- a/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
+++ b/Packages/PeelCore/Sources/PeelPrivileged/ProtectedData.swift
@@ -134,6 +134,7 @@ public enum ProtectedData: Sendable {
".foundry/keystores",
"Library/Preferences/hardhat-nodejs",
".phoenix/seed.dat",
+ ".eclair",
"Library/Application Support/Lnd/data",
".lightning/bitcoin/hsm_secret",
".lightning/bitcoin/lightningd.sqlite3",
diff --git a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
index ebe9d365..07e718a0 100644
--- a/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
+++ b/Packages/PeelCore/Tests/PeelCoreTests/DesktopWalletTests.swift
@@ -30,6 +30,10 @@ struct DesktopWalletTests {
"Library/Application Support/umami/Local Storage/leveldb/000003.log",
"Library/Application Support/umami/Local Storage/backup_leveldb.json",
"Library/Application Support/MyTonWallet/IndexedDB/file__0.indexeddb.leveldb/000003.log",
+ ".eclair/node_seed.dat",
+ ".eclair/channel_seed.dat",
+ ".eclair/seed.dat",
+ ".eclair/mainnet/eclair.sqlite.bak",
])
func refusesWhatAWalletKeeps(_ key: String) throws {
let directory = try TemporaryDirectory()