gui: Use wallet name for wallet migration rather than WalletModel

To prepare for migrating wallets that are not loaded, when migration
occurs in the GUI, it should not rely on a WalletModel existing.

Co-authored-by: furszy <matiasfurszyfer@protonmail.com>
This commit is contained in:
Ava Chowandfurszy committed 2024-08-13 11:25:38 -04:00
1 parent c3918583dd
commit d56a450bf5
9 files changed
+51 -18

No files matched your search

+3
View File
@@ -342,6 +342,9 @@ public:
//! Migrate a wallet
virtual util::Result<WalletMigrationResult> migrateWallet(const std::string& name, const SecureString& passphrase) = 0;
//! Returns true if wallet stores encryption keys
virtual bool isEncrypted(const std::string& wallet_name) = 0;
//! Return available wallets in wallet directory.
virtual std::vector<std::pair<std::string, std::string>> listWalletDir() = 0;