diff options
| author | Cory Fields <[email protected]> | 2018-02-01 14:04:49 -0500 |
|---|---|---|
| committer | Cory Fields <[email protected]> | 2018-02-01 14:04:49 -0500 |
| commit | 660f5f19ae74cc81b83540fcb95a33ec437834c8 (patch) | |
| tree | 752fb4414ab9edc5f09bcf7c385234da1d496e5f /src/net.h | |
| parent | Merge #12326: net: initialize socket to avoid closing random fd's (diff) | |
| download | discoin-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |