Bitcoin Core 28.99.0
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 | |
std::vector< std::shared_ptr< CWallet > > wallets | GUARDED_BY (wallets_mutex) |
std::list< LoadWalletFn > wallet_load_fns | GUARDED_BY (wallets_mutex) |
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. More... | |
~WalletContext () | |
Public Attributes | |
interfaces::Chain * | chain {nullptr} |
CScheduler * | scheduler {nullptr} |
ArgsManager * | args {nullptr} |
Mutex | wallets_mutex |
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.
|
default |
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.
|
default |
std::vector< std::shared_ptr< CWallet > > wallets wallet::WalletContext::GUARDED_BY | ( | wallets_mutex | ) |
std::list< LoadWalletFn > wallet_load_fns wallet::WalletContext::GUARDED_BY | ( | wallets_mutex | ) |
ArgsManager* wallet::WalletContext::args {nullptr} |
interfaces::Chain* wallet::WalletContext::chain {nullptr} |
CScheduler* wallet::WalletContext::scheduler {nullptr} |