diff options
author | Marko Bencun <marko.bencun@monetas.net> | 2017-05-27 12:00:37 +0200 |
---|---|---|
committer | Marko Bencun <marko.bencun@monetas.net> | 2017-05-30 09:21:47 +0200 |
commit | 5d67526026cd41845e06e93e5ae216bc1a7b9596 (patch) | |
tree | f559badaaefa0126c881c4d8451d88615357c772 /src/net.h | |
parent | 5c63d665e51ed0cd5d29275a5d63b07a64300ac8 (diff) |
add SeedNodes to CConnman::Options
Start 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.h | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -144,6 +144,7 @@ public: unsigned int nReceiveFloodSize = 0; uint64_t nMaxOutboundTimeframe = 0; uint64_t nMaxOutboundLimit = 0; + std::vector<std::string> vSeedNodes; }; CConnman(uint64_t seed0, uint64_t seed1); ~CConnman(); @@ -233,8 +234,6 @@ public: void GetBanned(banmap_t &banmap); void SetBanned(const banmap_t &banmap); - void AddOneShot(const std::string& strDest); - bool AddNode(const std::string& node); bool RemoveAddedNode(const std::string& node); std::vector<AddedNodeInfo> GetAddedNodeInfo(); @@ -292,6 +291,7 @@ private: }; void ThreadOpenAddedConnections(); + void AddOneShot(const std::string& strDest); void ProcessOneShot(); void ThreadOpenConnections(); void ThreadMessageHandler(); |