diff options
| author | Matt Corallo <[email protected]> | 2017-10-05 11:49:16 -0400 |
|---|---|---|
| committer | Matt Corallo <[email protected]> | 2017-10-13 13:25:58 -0400 |
| commit | 57edc0b0c86549020a39cd65f96496e9771c4769 (patch) | |
| tree | d5e72c1964cc4605d8bcf7aef1e397ecc4166bb9 /src/net.h | |
| parent | Replace relevant services logic with a function suite. (diff) | |
| download | discoin-57edc0b0c86549020a39cd65f96496e9771c4769.tar.xz discoin-57edc0b0c86549020a39cd65f96496e9771c4769.zip | |
Rename fAddnode to a more-descriptive "manual_connection"
Diffstat (limited to 'src/net.h')
| -rw-r--r-- | src/net.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -171,7 +171,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 fAddnode = false); + bool 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); @@ -506,7 +506,7 @@ public: int nVersion; std::string cleanSubVer; bool fInbound; - bool fAddnode; + bool m_manual_connection; int nStartingHeight; uint64_t nSendBytes; mapMsgCmdSize mapSendBytesPerMsgCmd; @@ -615,7 +615,7 @@ public: bool fWhitelisted; // This peer can bypass DoS banning. bool fFeeler; // If true this node is being used as a short lived feeler. bool fOneShot; - bool fAddnode; + bool m_manual_connection; bool fClient; const bool fInbound; std::atomic_bool fSuccessfullyConnected; |