aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoyle <doylet@protonmail.com>2019-02-12 10:31:22 +1100
committerDoyle <doylet@protonmail.com>2019-02-13 15:36:49 +1100
commitd2c95ab94178c7b88754769c56e9e4f0b327b155 (patch)
treeb632fb57ddee3f225e6b364de86fc2e18584b26f
parentMerge pull request #4988 (diff)
downloadmonero-d2c95ab94178c7b88754769c56e9e4f0b327b155.tar.xz
Don't decrypt keys in view only wallets in wallet_keys_unlocker
-rw-r--r--src/wallet/wallet2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet2.cpp b/src/wallet/wallet2.cpp
index c02d10ab4..4440ece77 100644
--- a/src/wallet/wallet2.cpp
+++ b/src/wallet/wallet2.cpp
@@ -867,7 +867,7 @@ wallet_keys_unlocker::wallet_keys_unlocker(wallet2 &w, const boost::optional<too
w(w),
locked(password != boost::none)
{
- if (!locked || w.is_unattended() || w.ask_password() != tools::wallet2::AskPasswordToDecrypt)
+ if (!locked || w.is_unattended() || w.ask_password() != tools::wallet2::AskPasswordToDecrypt || w.watch_only())
{
locked = false;
return;