aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-04-30 10:57:03 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-08-07 17:18:16 -0700
commit442abae2bac7bff85886143df01e14215532b974 (patch)
tree4680c5119375f7fcf36c93d56e55edbbc383d053 /src/net.h
parentaf59feb05235ecb85ec9d75b09c66e71268c9889 (diff)
downloadbitcoin-442abae2bac7bff85886143df01e14215532b974.tar.xz
[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
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h3
1 files changed, 2 insertions, 1 deletions
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<bool(CNode* pnode)> func);