diff options
author | Amiti Uttarwar <amiti@uttarwar.org> | 2020-04-30 10:57:03 -0700 |
---|---|---|
committer | Amiti Uttarwar <amiti@uttarwar.org> | 2020-08-07 17:18:16 -0700 |
commit | 442abae2bac7bff85886143df01e14215532b974 (patch) | |
tree | 4680c5119375f7fcf36c93d56e55edbbc383d053 /src/net.h | |
parent | af59feb05235ecb85ec9d75b09c66e71268c9889 (diff) | |
download | bitcoin-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |