diff options
| author | Pieter Wuille <[email protected]> | 2014-07-06 16:06:46 +0200 |
|---|---|---|
| committer | Ross Nicoll <[email protected]> | 2015-06-27 13:45:18 +0000 |
| commit | d0952adabdd231935ba160e498f554a912277e18 (patch) | |
| tree | 7eb268f0cdca551e1fe16d05837667b551cbd6c0 /src/net.cpp | |
| parent | add missing BOOST_FOREACH indentation in ThreadSocketHandler() (diff) | |
| download | discoin-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.cpp | 3 |
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; |