|
|
@ -149,6 +149,7 @@ public:
|
|
|
|
nLocalServices = connOptions.nLocalServices;
|
|
|
|
nLocalServices = connOptions.nLocalServices;
|
|
|
|
nMaxConnections = connOptions.nMaxConnections;
|
|
|
|
nMaxConnections = connOptions.nMaxConnections;
|
|
|
|
nMaxOutbound = std::min(connOptions.nMaxOutbound, connOptions.nMaxConnections);
|
|
|
|
nMaxOutbound = std::min(connOptions.nMaxOutbound, connOptions.nMaxConnections);
|
|
|
|
|
|
|
|
m_use_addrman_outgoing = connOptions.m_use_addrman_outgoing;
|
|
|
|
nMaxAddnode = connOptions.nMaxAddnode;
|
|
|
|
nMaxAddnode = connOptions.nMaxAddnode;
|
|
|
|
nMaxFeeler = connOptions.nMaxFeeler;
|
|
|
|
nMaxFeeler = connOptions.nMaxFeeler;
|
|
|
|
nBestHeight = connOptions.nBestHeight;
|
|
|
|
nBestHeight = connOptions.nBestHeight;
|
|
|
@ -174,6 +175,7 @@ public:
|
|
|
|
void Stop();
|
|
|
|
void Stop();
|
|
|
|
void Interrupt();
|
|
|
|
void Interrupt();
|
|
|
|
bool GetNetworkActive() const { return fNetworkActive; };
|
|
|
|
bool GetNetworkActive() const { return fNetworkActive; };
|
|
|
|
|
|
|
|
bool GetUseAddrmanOutgoing() const { return m_use_addrman_outgoing; };
|
|
|
|
void SetNetworkActive(bool active);
|
|
|
|
void SetNetworkActive(bool active);
|
|
|
|
void OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound = nullptr, const char *strDest = nullptr, bool fOneShot = false, bool fFeeler = false, bool manual_connection = false);
|
|
|
|
void OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound = nullptr, const char *strDest = nullptr, bool fOneShot = false, bool fFeeler = false, bool manual_connection = false);
|
|
|
|
bool CheckIncomingNonce(uint64_t nonce);
|
|
|
|
bool CheckIncomingNonce(uint64_t nonce);
|
|
|
@ -416,6 +418,7 @@ private:
|
|
|
|
int nMaxOutbound;
|
|
|
|
int nMaxOutbound;
|
|
|
|
int nMaxAddnode;
|
|
|
|
int nMaxAddnode;
|
|
|
|
int nMaxFeeler;
|
|
|
|
int nMaxFeeler;
|
|
|
|
|
|
|
|
bool m_use_addrman_outgoing;
|
|
|
|
std::atomic<int> nBestHeight;
|
|
|
|
std::atomic<int> nBestHeight;
|
|
|
|
CClientUIInterface* clientInterface;
|
|
|
|
CClientUIInterface* clientInterface;
|
|
|
|
NetEventsInterface* m_msgproc;
|
|
|
|
NetEventsInterface* m_msgproc;
|
|
|
|