diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-07-07 06:28:12 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-07-07 06:28:43 +0200 |
commit | e1f7c7d173a7522673f4638a6125ac43e78d1258 (patch) | |
tree | 8c6e44066ac11a3b8dbb32da10a040905369f0e0 /src/net.cpp | |
parent | e81e2e8f7cdee307227f150a6a2408c01fcafbf2 (diff) | |
parent | 9f4da19babf6989a639be29c70c1d2470c5829a6 (diff) |
Merge pull request #4472
9f4da19 Use pong receive time rather than processing time (Pieter Wuille)
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 c7bdb83aad..6a660dc9bd 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -655,6 +655,9 @@ bool CNode::ReceiveMsgBytes(const char *pch, unsigned int nBytes) pch += handled; nBytes -= handled; + + if (msg.complete()) + msg.nTime = GetTimeMicros(); } return true; |