diff options
author | TheCharlatan <seb.kung@gmail.com> | 2023-09-12 13:42:36 +0200 |
---|---|---|
committer | TheCharlatan <seb.kung@gmail.com> | 2023-09-12 22:51:45 +0200 |
commit | 2b08c55f01996e0b05763f05eac50b83ba9d5a8e (patch) | |
tree | 69c1003130f82866561c4bc2b4dfc9b6dcdb7ef0 /src/net.h | |
parent | f0d1d8b35c3aa9f2f923f74e3dbbf1e5ece4cd2f (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.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; }; |