aboutsummaryrefslogtreecommitdiff
path: root/src/simplewallet/simplewallet.cpp
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2018-11-16 11:08:34 +0200
committerRiccardo Spagni <ric@spagni.net>2018-11-16 11:08:34 +0200
commit86395e5bd6d0e7b89b4beb41d043761a6df77e46 (patch)
treefa85218cdf8804ae93bbd5ccb53146ead8248303 /src/simplewallet/simplewallet.cpp
parentMerge pull request #4790 (diff)
parentsimplewallet: don't skip asking for password when watch-only (diff)
downloadmonero-86395e5bd6d0e7b89b4beb41d043761a6df77e46.tar.xz
Merge pull request #4791
5878fe95 simplewallet: don't skip asking for password when watch-only (stoffu)
Diffstat (limited to 'src/simplewallet/simplewallet.cpp')
-rw-r--r--src/simplewallet/simplewallet.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/simplewallet/simplewallet.cpp b/src/simplewallet/simplewallet.cpp
index ce3fc3b09..1773172f2 100644
--- a/src/simplewallet/simplewallet.cpp
+++ b/src/simplewallet/simplewallet.cpp
@@ -105,7 +105,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 {