carrot_impl compilation
This commit is contained in:
@@ -119,11 +119,11 @@ typedef cryptonote::simple_wallet sw;
|
||||
m_idle_cond.notify_one(); \
|
||||
})
|
||||
|
||||
#define SCOPED_WALLET_UNLOCK_ON_BAD_PASSWORD(code) \
|
||||
#define SCOPED_WALLET_UNLOCK_ON_BAD_PASSWORD(code) \
|
||||
LOCK_IDLE_SCOPE(); \
|
||||
boost::optional<tools::password_container> pwd_container = boost::none; \
|
||||
if (m_wallet->ask_password() && !(pwd_container = get_and_verify_password())) { code; } \
|
||||
tools::wallet_keys_unlocker unlocker(*m_wallet, pwd_container);
|
||||
tools::wallet_keys_unlocker unlocker(*m_wallet, pwd_container ? &pwd_container->password() : nullptr);
|
||||
|
||||
#define SCOPED_WALLET_UNLOCK() SCOPED_WALLET_UNLOCK_ON_BAD_PASSWORD(return true;)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user