diff options
author | w0xlt <94266259+w0xlt@users.noreply.github.com> | 2021-12-14 19:18:56 -0300 |
---|---|---|
committer | w0xlt <94266259+w0xlt@users.noreply.github.com> | 2021-12-14 19:18:56 -0300 |
commit | 4807f73f48f4ff1084fcf7aee94e5b14592bfda8 (patch) | |
tree | 7761551b1159c35a4bed0ccf5a97d5f77650f0df /src/interfaces | |
parent | f727d814bd8df5a5346c128dd4573e457c1970e1 (diff) |
refactor: Implement restorewallet() logic in the wallet section
Currently restorewallet() logic is written in the RPC layer
and it canĀ“t be reused by GUI. So it reimplements this in the
wallet and interface sections and then, GUI can access it.
Diffstat (limited to 'src/interfaces')
-rw-r--r-- | src/interfaces/wallet.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/interfaces/wallet.h b/src/interfaces/wallet.h index a56ed8802d..4213a22749 100644 --- a/src/interfaces/wallet.h +++ b/src/interfaces/wallet.h @@ -322,6 +322,9 @@ public: //! Return default wallet directory. virtual std::string getWalletDir() = 0; + //! Restore backup wallet + virtual std::unique_ptr<Wallet> restoreWallet(const std::string& backup_file, const std::string& wallet_name, bilingual_str& error, std::vector<bilingual_str>& warnings) = 0; + //! Return available wallets in wallet directory. virtual std::vector<std::string> listWalletDir() = 0; |