From 083f20369878196785151e038e5f5126fed74021 Mon Sep 17 00:00:00 2001 From: Gregory Maxwell Date: Sun, 27 Nov 2016 02:47:22 +0000 Subject: Remove fNetworkNode. Matt pointed out to me that this appeared to be doing nothing (except involving itself in data races). --- src/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.cpp') 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; } -- cgit v1.2.3