aboutsummaryrefslogtreecommitdiff
path: root/src/net.cpp
diff options
context:
space:
mode:
authorPieter Wuille <[email protected]>2014-07-06 16:06:46 +0200
committerPieter Wuille <[email protected]>2014-07-06 16:08:18 +0200
commit9f4da19babf6989a639be29c70c1d2470c5829a6 (patch)
tree7cf5e3455fdaa26b1a20e5fb7e2f48df172d8d17 /src/net.cpp
parentqt: fix 'opens in testnet mode when presented with a BIP-72 link with no fall... (diff)
downloaddiscoin-9f4da19babf6989a639be29c70c1d2470c5829a6.tar.xz
discoin-9f4da19babf6989a639be29c70c1d2470c5829a6.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 934c45ca4..fbf13b41c 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -653,6 +653,9 @@ bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes)
pch += handled;
nBytes -= handled;
+
+ if (msg.complete())
+ msg.nTime = GetTimeMicros();
}
return true;