simplewallet: don't skip asking for password when watch-only

This commit is contained in:
stoffu 2018-11-04 10:24:33 +09:00
parent 963d247154
commit 5878fe95ce
No known key found for this signature in database
GPG key ID: 41DAB8343A9EC012

View file

@ -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 {