mirror of
https://github.com/dashpay/dash.git
synced 2024-12-26 12:32:48 +01:00
net: move semOutbound to CConnman
This commit is contained in:
parent
bd72937dc4
commit
8a593694b1
@ -84,8 +84,6 @@ std::string strSubVersion;
|
|||||||
|
|
||||||
limitedmap<uint256, int64_t> mapAlreadyAskedFor(MAX_INV_SZ);
|
limitedmap<uint256, int64_t> mapAlreadyAskedFor(MAX_INV_SZ);
|
||||||
|
|
||||||
static CSemaphore *semOutbound = NULL;
|
|
||||||
|
|
||||||
// Signals for message handling
|
// Signals for message handling
|
||||||
static CNodeSignals g_signals;
|
static CNodeSignals g_signals;
|
||||||
CNodeSignals& GetNodeSignals() { return g_signals; }
|
CNodeSignals& GetNodeSignals() { return g_signals; }
|
||||||
@ -2039,6 +2037,7 @@ CConnman::CConnman()
|
|||||||
nLastNodeId = 0;
|
nLastNodeId = 0;
|
||||||
nSendBufferMaxSize = 0;
|
nSendBufferMaxSize = 0;
|
||||||
nReceiveFloodSize = 0;
|
nReceiveFloodSize = 0;
|
||||||
|
semOutbound = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool StartNode(CConnman& connman, boost::thread_group& threadGroup, CScheduler& scheduler, ServiceFlags nLocalServices, ServiceFlags nRelevantServices, std::string& strNodeError)
|
bool StartNode(CConnman& connman, boost::thread_group& threadGroup, CScheduler& scheduler, ServiceFlags nLocalServices, ServiceFlags nRelevantServices, std::string& strNodeError)
|
||||||
|
@ -282,6 +282,8 @@ private:
|
|||||||
|
|
||||||
/** Services this instance cares about */
|
/** Services this instance cares about */
|
||||||
ServiceFlags nRelevantServices;
|
ServiceFlags nRelevantServices;
|
||||||
|
|
||||||
|
CSemaphore *semOutbound;
|
||||||
};
|
};
|
||||||
extern std::unique_ptr<CConnman> g_connman;
|
extern std::unique_ptr<CConnman> g_connman;
|
||||||
void MapPort(bool fUseUPnP);
|
void MapPort(bool fUseUPnP);
|
||||||
|
Loading…
Reference in New Issue
Block a user