Monero
Loading...
Searching...
No Matches
wallet.cpp File Reference
#include "wallet.h"
#include "pending_transaction.h"
#include "unsigned_transaction.h"
#include "transaction_history.h"
#include "address_book.h"
#include "subaddress.h"
#include "subaddress_account.h"
#include "common_defines.h"
#include "common/util.h"
#include "mnemonics/electrum-words.h"
#include "mnemonics/english.h"
#include <boost/format.hpp>
#include <sstream>
#include <unordered_map>
#include <boost/locale.hpp>
#include <boost/filesystem.hpp>
Include dependency graph for wallet.cpp:

Classes

struct  Monero::Wallet2CallbackImpl

Namespaces

namespace  Monero

Macros

#define MONERO_DEFAULT_LOG_CATEGORY   "WalletAPI"
#define LOCK_REFRESH()
#define PRE_VALIDATE_BACKGROUND_SYNC()

Macro Definition Documentation

◆ LOCK_REFRESH

#define LOCK_REFRESH ( )
Value:
bool refresh_enabled = m_refreshEnabled; \
m_refreshEnabled = false; \
m_wallet->stop(); \
m_refreshCV.notify_one(); \
boost::mutex::scoped_lock lock(m_refreshMutex); \
boost::mutex::scoped_lock lock2(m_refreshMutex2); \
/* m_refreshMutex's still locked here */ \
if (refresh_enabled) \
startRefresh(); \
})
boost::shared_ptr< call_befor_die_base > auto_scope_leave_caller
Definition misc_language.h:80
auto_scope_leave_caller create_scope_leave_handler(t_scope_leave_handler f)
Definition misc_language.h:97

◆ MONERO_DEFAULT_LOG_CATEGORY

#define MONERO_DEFAULT_LOG_CATEGORY   "WalletAPI"

◆ PRE_VALIDATE_BACKGROUND_SYNC

#define PRE_VALIDATE_BACKGROUND_SYNC ( )
Value:
do \
{ \
clearStatus(); \
if (m_wallet->key_on_device()) \
{ \
setStatusError(tr("HW wallet cannot use background sync")); \
return false; \
} \
if (m_wallet->watch_only()) \
{ \
setStatusError(tr("View only wallet cannot use background sync")); \
return false; \
} \
if (m_wallet->multisig()) \
{ \
setStatusError(tr("Multisig wallet cannot use background sync")); \
return false; \
} \
} while (0)
#define tr(x)
Definition common_defines.h:4