diff options
| author | Patrick Strateman <[email protected]> | 2015-08-13 02:31:46 -0700 |
|---|---|---|
| committer | Patrick Strateman <[email protected]> | 2015-08-22 15:38:23 -0700 |
| commit | 4bac60161029de6d71ef1e51e7af803ce6fb8405 (patch) | |
| tree | 2d8ff260f263ea341c9d6fef7eb564c355144d4c /src/main.cpp | |
| parent | Refactor: Move failure conditions to the top of AcceptConnection (diff) | |
| download | discoin-4bac60161029de6d71ef1e51e7af803ce6fb8405.tar.xz discoin-4bac60161029de6d71ef1e51e7af803ce6fb8405.zip | |
Record nMinPingUsecTime
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 33b57a528..35fbec666 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4522,6 +4522,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, if (pingUsecTime > 0) { // Successful ping time measurement, replace previous pfrom->nPingUsecTime = pingUsecTime; + pfrom->nMinPingUsecTime = std::min(pfrom->nMinPingUsecTime, pingUsecTime); } else { // This should never happen sProblem = "Timing mishap"; |