diff options
| author | Pieter Wuille <[email protected]> | 2016-11-30 17:13:00 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2016-11-30 17:15:58 -0800 |
| commit | 3bf06e9bac57b5b5a746677b75e297a7b154bdbd (patch) | |
| tree | 2d1a02dd11ed52e3d698776e7673b58c08df2d78 /src/main.cpp | |
| parent | Merge #9244: Trivial refactor: Remove extern keyword from function declarations (diff) | |
| parent | Remove pnodeLocalHost. (diff) | |
| download | discoin-3bf06e9bac57b5b5a746677b75e297a7b154bdbd.tar.xz discoin-3bf06e9bac57b5b5a746677b75e297a7b154bdbd.zip | |
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 452ceac56..274bf6fdd 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; } |