Changeset View
Changeset View
Standalone View
Standalone View
src/interfaces/wallet.h
Show First 20 Lines • Show All 102 Lines • ▼ Show 20 Lines | public: | ||||
virtual bool setAddressBook(const CTxDestination &dest, | virtual bool setAddressBook(const CTxDestination &dest, | ||||
const std::string &name, | const std::string &name, | ||||
const std::string &purpose) = 0; | const std::string &purpose) = 0; | ||||
// Remove address. | // Remove address. | ||||
virtual bool delAddressBook(const CTxDestination &dest) = 0; | virtual bool delAddressBook(const CTxDestination &dest) = 0; | ||||
//! Look up address in wallet, return whether exists. | //! Look up address in wallet, return whether exists. | ||||
virtual bool getAddress(const CTxDestination &dest, | virtual bool getAddress(const CTxDestination &dest, std::string *name, | ||||
std::string *name = nullptr, | isminetype *is_mine, std::string *purpose) = 0; | ||||
isminetype *is_mine = nullptr) = 0; | |||||
//! Get wallet address list. | //! Get wallet address list. | ||||
virtual std::vector<WalletAddress> getAddresses() = 0; | virtual std::vector<WalletAddress> getAddresses() = 0; | ||||
//! Add scripts to key store so old so software versions opening the wallet | //! Add scripts to key store so old so software versions opening the wallet | ||||
//! database can detect payments to newer address types. | //! database can detect payments to newer address types. | ||||
virtual void learnRelatedScripts(const CPubKey &key, OutputType type) = 0; | virtual void learnRelatedScripts(const CPubKey &key, OutputType type) = 0; | ||||
▲ Show 20 Lines • Show All 229 Lines • Show Last 20 Lines |