diff options
author | stoffu <stoffu@protonmail.ch> | 2018-11-04 10:24:33 +0900 |
---|---|---|
committer | stoffu <stoffu@protonmail.ch> | 2018-11-04 10:50:03 +0900 |
commit | 5878fe95ce422a509eae8c5c69e0e6d59e5d64a6 (patch) | |
tree | 8f315ec555639bda97ee18d9f1cfe834c6baab09 /src/simplewallet | |
parent | Merge pull request #4676 (diff) | |
download | monero-5878fe95ce422a509eae8c5c69e0e6d59e5d64a6.tar.xz |
simplewallet: don't skip asking for password when watch-only
Diffstat (limited to 'src/simplewallet')
-rw-r--r-- | src/simplewallet/simplewallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp index f171d35b6..27bc05a2e 100644 --- a/src/simplewallet/simplewallet.cpp +++ b/src/simplewallet/simplewallet.cpp @@ -104,7 +104,7 @@ typedef cryptonote::simple_wallet sw; #define SCOPED_WALLET_UNLOCK() \ LOCK_IDLE_SCOPE(); \ boost::optional<tools::password_container> pwd_container = boost::none; \ - if (m_wallet->ask_password() && !m_wallet->watch_only() && !(pwd_container = get_and_verify_password())) { return true; } \ + if (m_wallet->ask_password() && !(pwd_container = get_and_verify_password())) { return true; } \ tools::wallet_keys_unlocker unlocker(*m_wallet, pwd_container); enum TransferType { |