diff options
| author | MarcoFalke <[email protected]> | 2020-04-08 19:47:56 -0400 |
|---|---|---|
| committer | MarcoFalke <[email protected]> | 2020-04-15 15:05:18 -0400 |
| commit | fad4fa7e2fb95b7ced9007060ebfd0e8f181f5d8 (patch) | |
| tree | b8cc4ebb5ce96fef30123357661c22bfad6d070f /src/node | |
| parent | Merge #18615: test: Avoid accessing free'd memory in validation_chainstateman... (diff) | |
| download | discoin-fad4fa7e2fb95b7ced9007060ebfd0e8f181f5d8.tar.xz discoin-fad4fa7e2fb95b7ced9007060ebfd0e8f181f5d8.zip | |
node: Add args alias for gArgs global
Diffstat (limited to 'src/node')
| -rw-r--r-- | src/node/context.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/node/context.h b/src/node/context.h index 1c592b456..7b6dd3736 100644 --- a/src/node/context.h +++ b/src/node/context.h @@ -8,6 +8,7 @@ #include <memory> #include <vector> +class ArgsManager; class BanMan; class CConnman; class CScheduler; @@ -33,6 +34,7 @@ struct NodeContext { CTxMemPool* mempool{nullptr}; // Currently a raw pointer because the memory is not managed by this struct std::unique_ptr<PeerLogicValidation> peer_logic; std::unique_ptr<BanMan> banman; + ArgsManager* args{nullptr}; // Currently a raw pointer because the memory is not managed by this struct std::unique_ptr<interfaces::Chain> chain; std::vector<std::unique_ptr<interfaces::ChainClient>> chain_clients; std::unique_ptr<CScheduler> scheduler; |