[net/refactor] Add feeler connections to ConnectionType enum

This commit is contained in:
Amiti Uttarwar
2020-04-29 16:28:56 -07:00
parent 1521c47438
commit 0e52a659a2
4 changed files with 10 additions and 9 deletions

View File

@@ -117,6 +117,7 @@ enum class ConnectionType {
INBOUND,
OUTBOUND,
MANUAL,
FEELER,
};
class NetEventsInterface;
@@ -202,7 +203,7 @@ public:
bool GetNetworkActive() const { return fNetworkActive; };
bool GetUseAddrmanOutgoing() const { return m_use_addrman_outgoing; };
void SetNetworkActive(bool active);
void OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound = nullptr, const char *strDest = nullptr, bool m_addr_fetch = false, bool fFeeler = false, ConnectionType conn_type = ConnectionType::OUTBOUND, bool block_relay_only = false);
void OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound = nullptr, const char *strDest = nullptr, bool m_addr_fetch = false, ConnectionType conn_type = ConnectionType::OUTBOUND, bool block_relay_only = false);
bool CheckIncomingNonce(uint64_t nonce);
bool ForNode(NodeId id, std::function<bool(CNode* pnode)> func);