Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/wallet.h
Show First 20 Lines • Show All 866 Lines • ▼ Show 20 Lines | public: | ||||
std::map<CTxDestination, CAddressBookData> mapAddressBook; | std::map<CTxDestination, CAddressBookData> mapAddressBook; | ||||
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 558 Lines • ▼ Show 20 Lines | public: | ||||
* Implement lookup of key origin information through wallet key metadata. | * Implement lookup of key origin information through wallet key metadata. | ||||
*/ | */ | ||||
bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | bool GetKeyOrigin(const CKeyID &keyid, KeyOriginInfo &info) const override; | ||||
/** | /** | ||||
* Add a KeyOriginInfo to the wallet | * Add a KeyOriginInfo to the wallet | ||||
*/ | */ | ||||
bool AddKeyOrigin(const CPubKey &pubkey, const KeyOriginInfo &info); | bool AddKeyOrigin(const CPubKey &pubkey, const KeyOriginInfo &info); | ||||
friend struct WalletTestingSetup; | |||||
}; | }; | ||||
/** | /** | ||||
* Called periodically by the schedule thread. Prompts individual wallets to | * Called periodically by the schedule thread. Prompts individual wallets to | ||||
* resend their transactions. Actual rebroadcast schedule is managed by the | * resend their transactions. Actual rebroadcast schedule is managed by the | ||||
* wallets themselves. | * wallets themselves. | ||||
*/ | */ | ||||
void MaybeResendWalletTxs(); | void MaybeResendWalletTxs(); | ||||
▲ Show 20 Lines • Show All 70 Lines • Show Last 20 Lines |