Merge pull request #2238
ad4649ac Enable verifying wallet password with having to load wallet. (m2049r)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user