aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/api/wallet.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2018-07-27 14:22:34 -0500
committerluigi1111 <luigi1111w@gmail.com>2018-07-27 14:22:34 -0500
commit92b5d6c204b4622760bd9029579d013adf580483 (patch)
treeac96d1cb46f10a68dd59646afbe6b2a2f0967bfa /src/wallet/api/wallet.cpp
parentb293c487fbe61c8603852745ef780753e6586340 (diff)
parenta4272de79746c2349a0da8371f45390989cc6b90 (diff)
downloadmonzero-core-92b5d6c204b4622760bd9029579d013adf580483.tar.gz
monzero-core-92b5d6c204b4622760bd9029579d013adf580483.tar.xz
monzero-core-92b5d6c204b4622760bd9029579d013adf580483.zip
Merge pull request #4091
a4272de wallet2: unlock keys file before calling verify_password (needed for Windows) (stoffu)
Diffstat (limited to 'src/wallet/api/wallet.cpp')
-rw-r--r--src/wallet/api/wallet.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/wallet/api/wallet.cpp b/src/wallet/api/wallet.cpp
index 3f6bfec9e..680da26ce 100644
--- a/src/wallet/api/wallet.cpp
+++ b/src/wallet/api/wallet.cpp
@@ -2205,6 +2205,20 @@ void WalletImpl::keyReuseMitigation2(bool mitigation)
m_wallet->key_reuse_mitigation2(mitigation);
}
+bool WalletImpl::lockKeysFile()
+{
+ return m_wallet->lock_keys_file();
+}
+
+bool WalletImpl::unlockKeysFile()
+{
+ return m_wallet->unlock_keys_file();
+}
+
+bool WalletImpl::isKeysFileLocked()
+{
+ return m_wallet->is_keys_file_locked();
+}
} // namespace
namespace Bitmonero = Monero;