aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorTheCharlatan <seb.kung@gmail.com>2023-09-12 13:42:36 +0200
committerTheCharlatan <seb.kung@gmail.com>2023-09-12 22:51:45 +0200
commit2b08c55f01996e0b05763f05eac50b83ba9d5a8e (patch)
tree69c1003130f82866561c4bc2b4dfc9b6dcdb7ef0 /src/net.h
parentf0d1d8b35c3aa9f2f923f74e3dbbf1e5ece4cd2f (diff)
[refactor] Add CChainParams member to CConnman
This is done in preparation to the next commit, but has the nice effect of removing one further data structure relying on the global `Params()`.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 669ff68cb4..eaa0fa3280 100644
--- a/src/net.h
+++ b/src/net.h
@@ -47,6 +47,7 @@
class AddrMan;
class BanMan;
+class CChainParams;
class CNode;
class CScheduler;
struct bilingual_str;
@@ -1081,7 +1082,7 @@ public:
}
CConnman(uint64_t seed0, uint64_t seed1, AddrMan& addrman, const NetGroupManager& netgroupman,
- bool network_active = true);
+ const CChainParams& params, bool network_active = true);
~CConnman();
@@ -1566,6 +1567,8 @@ private:
std::vector<CNode*> m_nodes_copy;
};
+ const CChainParams& m_params;
+
friend struct ConnmanTestMsg;
};