diff options
author | Doyle <doylet@protonmail.com> | 2019-02-12 10:31:22 +1100 |
---|---|---|
committer | Doyle <doylet@protonmail.com> | 2019-02-13 15:36:49 +1100 |
commit | d2c95ab94178c7b88754769c56e9e4f0b327b155 (patch) | |
tree | b632fb57ddee3f225e6b364de86fc2e18584b26f /src/wallet/wallet2.cpp | |
parent | Merge pull request #4988 (diff) | |
download | monero-d2c95ab94178c7b88754769c56e9e4f0b327b155.tar.xz |
Don't decrypt keys in view only wallets in wallet_keys_unlocker
Diffstat (limited to 'src/wallet/wallet2.cpp')
-rw-r--r-- | src/wallet/wallet2.cpp | 2 |
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; |