mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-04-15 01:58:09 +02:00
torcontrol: Move tor controller into node context
Co-authored-by: sedited <seb.kung@gmail.com>
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include <node/warnings.h>
|
||||
#include <policy/fees/block_policy_estimator.h>
|
||||
#include <scheduler.h>
|
||||
#include <torcontrol.h>
|
||||
#include <txmempool.h>
|
||||
#include <validation.h>
|
||||
#include <validationinterface.h>
|
||||
|
||||
@@ -25,6 +25,7 @@ class ChainstateManager;
|
||||
class ECC_Context;
|
||||
class NetGroupManager;
|
||||
class PeerManager;
|
||||
class TorController;
|
||||
namespace interfaces {
|
||||
class Chain;
|
||||
class ChainClient;
|
||||
@@ -69,6 +70,7 @@ struct NodeContext {
|
||||
std::unique_ptr<const NetGroupManager> netgroupman;
|
||||
std::unique_ptr<CBlockPolicyEstimator> fee_estimator;
|
||||
std::unique_ptr<PeerManager> peerman;
|
||||
std::unique_ptr<TorController> tor_controller;
|
||||
std::unique_ptr<ChainstateManager> chainman;
|
||||
std::unique_ptr<BanMan> banman;
|
||||
ArgsManager* args{nullptr}; // Currently a raw pointer because the memory is not managed by this struct
|
||||
|
||||
Reference in New Issue
Block a user