diff options
| author | Gregory Maxwell <[email protected]> | 2016-11-27 02:47:22 +0000 |
|---|---|---|
| committer | Gregory Maxwell <[email protected]> | 2016-11-27 04:13:54 +0000 |
| commit | 083f20369878196785151e038e5f5126fed74021 (patch) | |
| tree | c57369aeff2af76a042bca5a23f64ba321bf0ac7 /src/main.cpp | |
| parent | Merge #9128: net: Decouple CConnman and message serialization (diff) | |
| download | discoin-083f20369878196785151e038e5f5126fed74021.tar.xz discoin-083f20369878196785151e038e5f5126fed74021.zip | |
Remove fNetworkNode.
Matt pointed out to me that this appeared to be doing nothing (except involving itself in data races).
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp index 6bb81fab2..4b6872146 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -5242,8 +5242,8 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, { pfrom->SetRecvVersion(min(pfrom->nVersion, PROTOCOL_VERSION)); - // Mark this node as currently connected, so we update its timestamp later. - if (pfrom->fNetworkNode) { + if (!pfrom->fInbound) { + // Mark this node as currently connected, so we update its timestamp later. LOCK(cs_main); State(pfrom->GetId())->fCurrentlyConnected = true; } |