Merge pull request #2238

ad4649ac Enable verifying wallet password with having to load wallet. (m2049r)
This commit is contained in:
Riccardo Spagni 2017-08-15 20:46:09 +02:00
commit 4c24eb050b
No known key found for this signature in database
GPG key ID: 55432DF31CCD4FCD
5 changed files with 36 additions and 3 deletions

View file

@ -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)
{

View file

@ -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);