Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/scriptpubkeyman.h
Show All 16 Lines | |||||
enum class OutputType; | enum class OutputType; | ||||
// Wallet storage things that ScriptPubKeyMans need in order to be able to store | // Wallet storage things that ScriptPubKeyMans need in order to be able to store | ||||
// things to the wallet database. It provides access to things that are part of | // things to the wallet database. It provides access to things that are part of | ||||
// the entire wallet and not specific to a ScriptPubKeyMan such as wallet flags, | // the entire wallet and not specific to a ScriptPubKeyMan such as wallet flags, | ||||
// 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. | // 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() = 0; | ||||
virtual bool IsWalletFlagSet(uint64_t) const = 0; | virtual bool IsWalletFlagSet(uint64_t) const = 0; | ||||
virtual void SetWalletFlag(uint64_t) = 0; | virtual void SetWalletFlag(uint64_t) = 0; | ||||
virtual void UnsetWalletFlagWithDB(WalletBatch &, uint64_t) = 0; | virtual void UnsetWalletFlagWithDB(WalletBatch &, uint64_t) = 0; | ||||
▲ Show 20 Lines • Show All 379 Lines • Show Last 20 Lines |