Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show First 20 Lines • Show All 198 Lines • ▼ Show 20 Lines | public: | ||||
//! The action to do when the DB needs rewrite | //! The action to do when the DB needs rewrite | ||||
virtual void RewriteDB() {} | virtual void RewriteDB() {} | ||||
virtual int64_t GetOldestKeyPoolTime() { return GetTime(); } | virtual int64_t GetOldestKeyPoolTime() { return GetTime(); } | ||||
virtual size_t KeypoolCountExternalKeys() { return 0; } | virtual size_t KeypoolCountExternalKeys() { return 0; } | ||||
virtual unsigned int GetKeyPoolSize() const { return 0; } | virtual unsigned int GetKeyPoolSize() const { return 0; } | ||||
virtual int64_t GetTimeFirstKey() const { return 0; } | |||||
virtual const CKeyMetadata *GetMetadata(uint160 id) const { | virtual const CKeyMetadata *GetMetadata(uint160 id) const { | ||||
return nullptr; | return nullptr; | ||||
} | } | ||||
}; | }; | ||||
class LegacyScriptPubKeyMan : public ScriptPubKeyMan, | class LegacyScriptPubKeyMan : public ScriptPubKeyMan, | ||||
public FillableSigningProvider { | public FillableSigningProvider { | ||||
private: | private: | ||||
▲ Show 20 Lines • Show All 117 Lines • ▼ Show 20 Lines | public: | ||||
void RewriteDB() override; | void RewriteDB() 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); | ||||
unsigned int GetKeyPoolSize() const override; | unsigned int GetKeyPoolSize() const override; | ||||
int64_t GetTimeFirstKey() const override; | |||||
const CKeyMetadata *GetMetadata(uint160 id) const override; | const CKeyMetadata *GetMetadata(uint160 id) const override; | ||||
bool CanGetAddresses(bool internal = false) override; | bool CanGetAddresses(bool internal = false) override; | ||||
// Map from Key ID to key metadata. | // Map from Key ID to key metadata. | ||||
std::map<CKeyID, CKeyMetadata> mapKeyMetadata GUARDED_BY(cs_wallet); | std::map<CKeyID, CKeyMetadata> mapKeyMetadata GUARDED_BY(cs_wallet); | ||||
// Map from Script ID to key metadata (for watch-only keys). | // Map from Script ID to key metadata (for watch-only keys). | ||||
▲ Show 20 Lines • Show All 136 Lines • Show Last 20 Lines |