Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 856 Lines • ▼ Show 20 Lines | CWallet(const CChainParams &chainParamsIn, interfaces::Chain *chain, | ||||
: m_chain(chain), m_location(location), database(std::move(_database)), | : m_chain(chain), m_location(location), database(std::move(_database)), | ||||
chainParams(chainParamsIn) {} | chainParams(chainParamsIn) {} | ||||
~CWallet() { | ~CWallet() { | ||||
// Should not have slots connected at this point. | // Should not have slots connected at this point. | ||||
assert(NotifyUnload.empty()); | assert(NotifyUnload.empty()); | ||||
} | } | ||||
/* Returns the chain params used by this wallet. */ | |||||
const CChainParams &GetChainParams() const override { return chainParams; } | |||||
bool IsCrypted() const; | bool IsCrypted() const; | ||||
bool IsLocked() const override; | bool IsLocked() const override; | ||||
bool Lock(); | bool Lock(); | ||||
/** Interface to assert chain access */ | /** Interface to assert chain access */ | ||||
bool HaveChain() const { return m_chain ? true : false; } | bool HaveChain() const { return m_chain ? true : false; } | ||||
std::map<TxId, CWalletTx> mapWallet GUARDED_BY(cs_wallet); | std::map<TxId, CWalletTx> mapWallet GUARDED_BY(cs_wallet); | ||||
▲ Show 20 Lines • Show All 705 Lines • Show Last 20 Lines |