mirror of
https://git.wownero.com/wownero/wownero.git
synced 2024-12-23 04:58:52 +00:00
Merge pull request #4791
5878fe95
simplewallet: don't skip asking for password when watch-only (stoffu)
This commit is contained in:
commit
86395e5bd6
@ -105,7 +105,7 @@ typedef cryptonote::simple_wallet sw;
|
|||||||
#define SCOPED_WALLET_UNLOCK() \
|
#define SCOPED_WALLET_UNLOCK() \
|
||||||
LOCK_IDLE_SCOPE(); \
|
LOCK_IDLE_SCOPE(); \
|
||||||
boost::optional<tools::password_container> pwd_container = boost::none; \
|
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);
|
tools::wallet_keys_unlocker unlocker(*m_wallet, pwd_container);
|
||||||
|
|
||||||
enum TransferType {
|
enum TransferType {
|
||||||
|
Loading…
Reference in New Issue
Block a user