Bitcoin ABC 0.26.3
P2P Digital Currency
|
WalletContext struct containing references to state shared between CWallet instances, like the reference to the chain interface, and the list of opened wallets. More...
#include <context.h>
Public Member Functions | |
WalletContext () | |
Declare default constructor and destructor that are not inline, so code instantiating the WalletContext struct doesn't need to include class definitions for smart pointer and container members. | |
~WalletContext () | |
Public Attributes | |
interfaces::Chain * | chain {nullptr} |
ArgsManager * | args {nullptr} |
WalletContext struct containing references to state shared between CWallet instances, like the reference to the chain interface, and the list of opened wallets.
Future shared state can be added here as an alternative to adding global variables.
The struct isn't intended to have any member functions. It should just be a collection of state pointers that doesn't pull in dependencies or implement behavior.
WalletContext::WalletContext | ( | ) |
Declare default constructor and destructor that are not inline, so code instantiating the WalletContext struct doesn't need to include class definitions for smart pointer and container members.
Definition at line 7 of file context.cpp.
WalletContext::~WalletContext | ( | ) |
Definition at line 8 of file context.cpp.
ArgsManager* WalletContext::args {nullptr} |
interfaces::Chain* WalletContext::chain {nullptr} |