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 Chow
2024-06-10 15:40:53 -04:00
parent c3918583dd
commit d56a450bf5
9 changed files with 51 additions and 18 deletions

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;