torcontrol: Move tor controller into node context

Co-authored-by: sedited <seb.kung@gmail.com>
This commit is contained in:
Fabian Jahr
2026-03-13 15:19:48 +01:00
parent eae193e750
commit b1869e9a2d
5 changed files with 11 additions and 36 deletions

View File

@@ -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>

View File

@@ -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