Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show All 29 Lines | |||||
// wallet version, encryption keys, encryption status, and the database itself. | // wallet version, encryption keys, encryption status, and the database itself. | ||||
// This allows a ScriptPubKeyMan to have callbacks into CWallet without causing | // This allows a ScriptPubKeyMan to have callbacks into CWallet without causing | ||||
// a circular dependency. WalletStorage should be the same for all | // a circular dependency. WalletStorage should be the same for all | ||||
// ScriptPubKeyMans of a wallet. | // ScriptPubKeyMans of a wallet. | ||||
class WalletStorage { | class WalletStorage { | ||||
public: | public: | ||||
virtual ~WalletStorage() = default; | virtual ~WalletStorage() = default; | ||||
virtual const std::string GetDisplayName() const = 0; | virtual const std::string GetDisplayName() const = 0; | ||||
virtual WalletDatabase &GetDatabase() = 0; | virtual WalletDatabase &GetDatabase() const = 0; | ||||
virtual const CChainParams &GetChainParams() const = 0; | virtual const CChainParams &GetChainParams() const = 0; | ||||
virtual bool IsWalletFlagSet(uint64_t) const = 0; | virtual bool IsWalletFlagSet(uint64_t) const = 0; | ||||
virtual void UnsetBlankWalletFlag(WalletBatch &) = 0; | virtual void UnsetBlankWalletFlag(WalletBatch &) = 0; | ||||
virtual bool CanSupportFeature(enum WalletFeature) const = 0; | virtual bool CanSupportFeature(enum WalletFeature) const = 0; | ||||
virtual void SetMinVersion(enum WalletFeature, WalletBatch * = nullptr, | virtual void SetMinVersion(enum WalletFeature, WalletBatch * = nullptr, | ||||
bool = false) = 0; | bool = false) = 0; | ||||
virtual const CKeyingMaterial &GetEncryptionKey() const = 0; | virtual const CKeyingMaterial &GetEncryptionKey() const = 0; | ||||
virtual bool HasEncryptionKeys() const = 0; | virtual bool HasEncryptionKeys() const = 0; | ||||
▲ Show 20 Lines • Show All 743 Lines • Show Last 20 Lines |