aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet_manager.cpp
diff options
context:
space:
mode:
authorm2049r <30435443+m2049r@users.noreply.github.com>2017-08-02 00:41:05 +0200
committerm2049r <30435443+m2049r@users.noreply.github.com>2017-08-03 01:45:45 +0200
commitad4649ac81f4539e87b17eb7907e0553c7e11098 (patch)
tree126baebd2efb27d49e24a37ecdca03bc821f4a9d /src/wallet/api/wallet_manager.cpp
parentMerge pull request #2159 (diff)
downloadmonero-ad4649ac81f4539e87b17eb7907e0553c7e11098.tar.xz
Enable verifying wallet password with having to load wallet.
Diffstat (limited to 'src/wallet/api/wallet_manager.cpp')
-rw-r--r--src/wallet/api/wallet_manager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wallet/api/wallet_manager.cpp b/src/wallet/api/wallet_manager.cpp
index b2f947972..a23533530 100644
--- a/src/wallet/api/wallet_manager.cpp
+++ b/src/wallet/api/wallet_manager.cpp
@@ -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)
{