mirror of
https://github.com/monero-project/monero.git
synced 2025-10-11 10:58:31 -04:00
Merge pull request #2238
ad4649ac
Enable verifying wallet password with having to load wallet. (m2049r)
This commit is contained in:
commit
4c24eb050b
5 changed files with 36 additions and 3 deletions
|
@ -125,6 +125,10 @@ bool WalletManagerImpl::walletExists(const std::string &path)
|
|||
return false;
|
||||
}
|
||||
|
||||
bool WalletManagerImpl::verifyWalletPassword(const std::string &keys_file_name, const std::string &password, bool watch_only) const
|
||||
{
|
||||
return tools::wallet2::verify_password(keys_file_name, password, watch_only);
|
||||
}
|
||||
|
||||
std::vector<std::string> WalletManagerImpl::findWallets(const std::string &path)
|
||||
{
|
||||
|
|
|
@ -50,6 +50,7 @@ public:
|
|||
const std::string &spendKeyString = "");
|
||||
virtual bool closeWallet(Wallet *wallet);
|
||||
bool walletExists(const std::string &path);
|
||||
bool verifyWalletPassword(const std::string &keys_file_name, const std::string &password, bool watch_only) const;
|
||||
std::vector<std::string> findWallets(const std::string &path);
|
||||
std::string errorString() const;
|
||||
void setDaemonAddress(const std::string &address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue