diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2016-11-30 17:13:00 -0800 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2016-11-30 17:15:58 -0800 |
commit | 3bf06e9bac57b5b5a746677b75e297a7b154bdbd (patch) | |
tree | 2d1a02dd11ed52e3d698776e7673b58c08df2d78 /src/main.cpp | |
parent | 72ae6f8cf0224370e8121d6769b21e612ca15d6f (diff) | |
parent | bdb922b34c9a477c4ebf358653f6bcfb9bee48ce (diff) |
Merge #9226: Remove fNetworkNode and pnodeLocalHost.
bdb922b Remove pnodeLocalHost. (Gregory Maxwell)
083f203 Remove fNetworkNode. (Gregory Maxwell)
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 452ceac568..274bf6fdda 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; } |