Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show First 20 Lines • Show All 170 Lines • ▼ Show 20 Lines | public: | ||||
virtual void ReturnDestination(int64_t index, bool internal, | virtual void ReturnDestination(int64_t index, bool internal, | ||||
const CPubKey &pubkey) {} | const CPubKey &pubkey) {} | ||||
virtual bool TopUp(unsigned int size = 0) { return false; } | virtual bool TopUp(unsigned int size = 0) { return false; } | ||||
//! Mark unused addresses as being used | //! Mark unused addresses as being used | ||||
virtual void MarkUnusedAddresses(const CScript &script) {} | virtual void MarkUnusedAddresses(const CScript &script) {} | ||||
/** | |||||
* Sets up the key generation stuff, i.e. generates new HD seeds and sets | |||||
* them as active. Returns false if already setup or setup fails, true if | |||||
* setup is successful Set force=true to make it re-setup if already setup, | |||||
* used for upgrades | |||||
*/ | |||||
virtual bool SetupGeneration(bool force = false) { return false; } | |||||
/* Returns true if HD is enabled */ | /* Returns true if HD is enabled */ | ||||
virtual bool IsHDEnabled() const { return false; } | virtual bool IsHDEnabled() const { return false; } | ||||
/* Returns true if the wallet can give out new addresses. This means it has | /* Returns true if the wallet can give out new addresses. This means it has | ||||
* keys in the keypool or can generate new keys */ | * keys in the keypool or can generate new keys */ | ||||
virtual bool CanGetAddresses(bool internal = false) { return false; } | virtual bool CanGetAddresses(bool internal = false) { return false; } | ||||
/** Upgrades the wallet to the specified version */ | /** Upgrades the wallet to the specified version */ | ||||
▲ Show 20 Lines • Show All 120 Lines • ▼ Show 20 Lines | public: | ||||
void MarkUnusedAddresses(const CScript &script) override; | void MarkUnusedAddresses(const CScript &script) override; | ||||
//! Upgrade stored CKeyMetadata objects to store key origin info as | //! Upgrade stored CKeyMetadata objects to store key origin info as | ||||
//! KeyOriginInfo | //! KeyOriginInfo | ||||
void UpgradeKeyMetadata() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | void UpgradeKeyMetadata() EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
bool IsHDEnabled() const override; | bool IsHDEnabled() const override; | ||||
bool SetupGeneration(bool force = false) override; | |||||
bool Upgrade(int prev_version, std::string &error) override; | bool Upgrade(int prev_version, std::string &error) override; | ||||
bool HavePrivateKeys() const override; | bool HavePrivateKeys() const override; | ||||
int64_t GetOldestKeyPoolTime() override; | int64_t GetOldestKeyPoolTime() override; | ||||
size_t KeypoolCountExternalKeys() override | size_t KeypoolCountExternalKeys() override | ||||
EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |