aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorMarko Bencun <marko.bencun@monetas.net>2017-06-01 11:07:08 +0200
committerMarko Bencun <marko.bencun@monetas.net>2017-06-15 23:06:12 +0200
commitce79f3251851f6177f38009341802e6065cb70af (patch)
tree9ec347e23680be4583838e22a72940ab0cc33422 /src/net.h
parentc2ab38bdd57a16e6c708dcc633d9162331c9d311 (diff)
downloadbitcoin-ce79f3251851f6177f38009341802e6065cb70af.tar.xz
add WhitelistedRange to CConnman::Options
Part of a series of changes to clean up the instantiation of connman by decoupling the command line arguments.
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/net.h b/src/net.h
index a6aea189f9..b11baab335 100644
--- a/src/net.h
+++ b/src/net.h
@@ -144,6 +144,7 @@ public:
uint64_t nMaxOutboundTimeframe = 0;
uint64_t nMaxOutboundLimit = 0;
std::vector<std::string> vSeedNodes;
+ std::vector<CSubNet> vWhitelistedRange;
};
CConnman(uint64_t seed0, uint64_t seed1);
~CConnman();
@@ -244,8 +245,6 @@ public:
unsigned int GetSendBufferSize() const;
- void AddWhitelistedRange(const CSubNet &subnet);
-
ServiceFlags GetLocalServices() const;
//!set the max outbound target in bytes
@@ -346,7 +345,6 @@ private:
// Whitelisted ranges. Any node connecting from these is automatically
// whitelisted (as well as those connecting to whitelisted binds).
std::vector<CSubNet> vWhitelistedRange;
- CCriticalSection cs_vWhitelistedRange;
unsigned int nSendBufferMaxSize;
unsigned int nReceiveFloodSize;