Browse Source

net: move semOutbound to CConnman

0.14
Cory Fields 9 years ago
parent
commit
8a593694b1
  1. 3
      src/net.cpp
  2. 2
      src/net.h

3
src/net.cpp

@ -84,8 +84,6 @@ std::string strSubVersion; @@ -84,8 +84,6 @@ std::string strSubVersion;
limitedmap<uint256, int64_t> mapAlreadyAskedFor(MAX_INV_SZ);
static CSemaphore *semOutbound = NULL;
// Signals for message handling
static CNodeSignals g_signals;
CNodeSignals& GetNodeSignals() { return g_signals; }
@ -2039,6 +2037,7 @@ CConnman::CConnman() @@ -2039,6 +2037,7 @@ CConnman::CConnman()
nLastNodeId = 0;
nSendBufferMaxSize = 0;
nReceiveFloodSize = 0;
semOutbound = NULL;
}
bool StartNode(CConnman& connman, boost::thread_group& threadGroup, CScheduler& scheduler, ServiceFlags nLocalServices, ServiceFlags nRelevantServices, std::string& strNodeError)

2
src/net.h

@ -282,6 +282,8 @@ private: @@ -282,6 +282,8 @@ private:
/** Services this instance cares about */
ServiceFlags nRelevantServices;
CSemaphore *semOutbound;
};
extern std::unique_ptr<CConnman> g_connman;
void MapPort(bool fUseUPnP);

Loading…
Cancel
Save