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 the entire wallet and not specific to a ScriptPubKeyMan such as wallet flags, wallet version, encryption keys, encryption status, and the database itself. This allows a ScriptPubKeyMan to have callbacks into CWallet without causing a circular dependency. WalletStorage should be the same for all ScriptPubKeyMans of a wallet.
Declared in <wallet/scriptpubkeyman.h>
class WalletStorage;
| Name | Description |
|---|---|
~WalletStorage [destructor] [virtual] | Destroys the wallet storage. |
GetDatabase [virtual] | Returns the database backing this wallet. |
HasEncryptionKeys [virtual] | Returns whether the wallet has encryption keys (i.e. is encrypted). |
IsLocked [virtual] | Returns whether the wallet is currently locked. |
IsWalletFlagSet [virtual] | Returns whether the given wallet flag is set. |
LogName [virtual] | Returns the wallet name used to tag log output. |
TopUpCallback [virtual] | Callback function for after TopUp completes containing any scripts that were added by a SPKMan |
UnsetBlankWalletFlag [virtual] | Clears the "blank wallet" flag, recording the change in the given batch. |
WithEncryptionKey [virtual] | Pass the encryption key to cb(). |
| Name | Description |
|---|---|
CWallet | A CWallet maintains a set of transactions and balances, and provides the ability to create new transactions. |