aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2020-04-29 16:28:56 -0700
committerAmiti Uttarwar <amiti@uttarwar.org>2020-08-07 17:18:16 -0700
commit0e52a659a2de915fc3dce37fc8fac39be1c8b6fa (patch)
tree52b33194e5b33d9b372d426841e790dd231a38d4 /src/net.h
parent1521c47438537e192230486dffcec0228a53878d (diff)
downloadbitcoin-0e52a659a2de915fc3dce37fc8fac39be1c8b6fa.tar.xz
[net/refactor] Add feeler connections to ConnectionType enum
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 f7741e8370..7eb99e3ed8 100644
--- a/src/net.h
+++ b/src/net.h
@@ -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);