Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 752 Lines • ▼ Show 20 Lines | |||||
class WalletRescanReserver; | class WalletRescanReserver; | ||||
/** | /** | ||||
* A CWallet is an extension of a keystore, which also maintains a set of | * A CWallet is an extension of a keystore, which also maintains a set of | ||||
* transactions and balances, and provides the ability to create new | * transactions and balances, and provides the ability to create new | ||||
* transactions. | * transactions. | ||||
*/ | */ | ||||
class CWallet final : public FillableSigningProvider, | class CWallet final : public FillableSigningProvider, | ||||
private interfaces::Chain::Notifications { | public interfaces::Chain::Notifications { | ||||
private: | private: | ||||
CKeyingMaterial vMasterKey GUARDED_BY(cs_KeyStore); | CKeyingMaterial vMasterKey GUARDED_BY(cs_KeyStore); | ||||
//! if fUseCrypto is true, mapKeys must be empty | //! if fUseCrypto is true, mapKeys must be empty | ||||
//! if fUseCrypto is false, vMasterKey must be empty | //! if fUseCrypto is false, vMasterKey must be empty | ||||
std::atomic<bool> fUseCrypto; | std::atomic<bool> fUseCrypto; | ||||
//! keeps track of whether Unlock has run a thorough check before | //! keeps track of whether Unlock has run a thorough check before | ||||
▲ Show 20 Lines • Show All 254 Lines • ▼ Show 20 Lines | public: | ||||
std::map<CTxDestination, CAddressBookData> | std::map<CTxDestination, CAddressBookData> | ||||
mapAddressBook GUARDED_BY(cs_wallet); | mapAddressBook GUARDED_BY(cs_wallet); | ||||
std::set<COutPoint> setLockedCoins GUARDED_BY(cs_wallet); | std::set<COutPoint> setLockedCoins GUARDED_BY(cs_wallet); | ||||
/** Registered interfaces::Chain::Notifications handler. */ | /** Registered interfaces::Chain::Notifications handler. */ | ||||
std::unique_ptr<interfaces::Handler> m_chain_notifications_handler; | std::unique_ptr<interfaces::Handler> m_chain_notifications_handler; | ||||
/** Register the wallet for chain notifications */ | |||||
void handleNotifications(); | |||||
/** Interface for accessing chain state. */ | /** Interface for accessing chain state. */ | ||||
interfaces::Chain &chain() const { | interfaces::Chain &chain() const { | ||||
assert(m_chain); | assert(m_chain); | ||||
return *m_chain; | return *m_chain; | ||||
} | } | ||||
const CWalletTx *GetWalletTx(const TxId &txid) const; | const CWalletTx *GetWalletTx(const TxId &txid) const; | ||||
▲ Show 20 Lines • Show All 664 Lines • Show Last 20 Lines |