aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-07-06 16:06:46 +0200
committerRoss Nicoll <[email protected]>2015-06-27 13:45:18 +0000
commitd0952adabdd231935ba160e498f554a912277e18 (patch)
tree7eb268f0cdca551e1fe16d05837667b551cbd6c0 /src/net.cpp
parentadd missing BOOST_FOREACH indentation in ThreadSocketHandler() (diff)
downloaddiscoin-d0952adabdd231935ba160e498f554a912277e18.tar.xz
discoin-d0952adabdd231935ba160e498f554a912277e18.zip
Use pong receive time rather than processing time
Diffstat (limited to 'src/net.cpp')
-rw-r--r--src/net.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/net.cpp b/src/net.cpp
index c02bf271f..26543c329 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -639,6 +639,9 @@ bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes)
pch += handled;
nBytes -= handled;
+
+ if (msg.complete())
+ msg.nTime = GetTimeMicros();
}
return true;