aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-11-30 17:13:00 -0800
committerPieter Wuille <pieter.wuille@gmail.com>2016-11-30 17:15:58 -0800
commit3bf06e9bac57b5b5a746677b75e297a7b154bdbd (patch)
tree2d1a02dd11ed52e3d698776e7673b58c08df2d78 /src/main.cpp
parent72ae6f8cf0224370e8121d6769b21e612ca15d6f (diff)
parentbdb922b34c9a477c4ebf358653f6bcfb9bee48ce (diff)
downloadbitcoin-3bf06e9bac57b5b5a746677b75e297a7b154bdbd.tar.xz
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.cpp4
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;
}