aboutsummaryrefslogtreecommitdiff
path: root/src/net.h
diff options
context:
space:
mode:
authorCory Fields <[email protected]>2018-02-01 14:04:49 -0500
committerCory Fields <[email protected]>2018-02-01 14:04:49 -0500
commit660f5f19ae74cc81b83540fcb95a33ec437834c8 (patch)
tree752fb4414ab9edc5f09bcf7c385234da1d496e5f /src/net.h
parentMerge #12326: net: initialize socket to avoid closing random fd's (diff)
downloaddiscoin-660f5f19ae74cc81b83540fcb95a33ec437834c8.tar.xz
discoin-660f5f19ae74cc81b83540fcb95a33ec437834c8.zip
net: don't retry failed oneshot connections forever
Diffstat (limited to 'src/net.h')
-rw-r--r--src/net.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net.h b/src/net.h
index 317321b15..0542ec1aa 100644
--- a/src/net.h
+++ b/src/net.h
@@ -177,7 +177,7 @@ public:
void Interrupt();
bool GetNetworkActive() const { return fNetworkActive; };
void SetNetworkActive(bool active);
- bool OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound = nullptr, const char *strDest = nullptr, bool fOneShot = false, bool fFeeler = false, bool manual_connection = false);
+ void OpenNetworkConnection(const CAddress& addrConnect, bool fCountFailure, CSemaphoreGrant *grantOutbound = nullptr, const char *strDest = nullptr, bool fOneShot = false, bool fFeeler = false, bool manual_connection = false);
bool CheckIncomingNonce(uint64_t nonce);
bool ForNode(NodeId id, std::function<bool(CNode* pnode)> func);