From 442abae2bac7bff85886143df01e14215532b974 Mon Sep 17 00:00:00 2001 From: Amiti Uttarwar Date: Thu, 30 Apr 2020 10:57:03 -0700 Subject: [net/refactor] Add AddrFetch connections to ConnectionType enum - AddrFetch connections are short lived connections used to getaddr from a peer - previously called "one shot" connections --- src/net.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/net.h') diff --git a/src/net.h b/src/net.h index d3a423fd13..269877b21e 100644 --- a/src/net.h +++ b/src/net.h @@ -119,6 +119,7 @@ enum class ConnectionType { MANUAL, FEELER, BLOCK_RELAY, + ADDR_FETCH, }; class NetEventsInterface; @@ -204,7 +205,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, ConnectionType conn_type = ConnectionType::OUTBOUND); + void OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound = nullptr, const char *strDest = nullptr, ConnectionType conn_type = ConnectionType::OUTBOUND); bool CheckIncomingNonce(uint64_t nonce); bool ForNode(NodeId id, std::function func); -- cgit v1.2.3