|
|
@ -4522,6 +4522,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, |
|
|
|
if (pingUsecTime > 0) { |
|
|
|
if (pingUsecTime > 0) { |
|
|
|
// Successful ping time measurement, replace previous
|
|
|
|
// Successful ping time measurement, replace previous
|
|
|
|
pfrom->nPingUsecTime = pingUsecTime; |
|
|
|
pfrom->nPingUsecTime = pingUsecTime; |
|
|
|
|
|
|
|
pfrom->nMinPingUsecTime = std::min(pfrom->nMinPingUsecTime, pingUsecTime); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// This should never happen
|
|
|
|
// This should never happen
|
|
|
|
sProblem = "Timing mishap"; |
|
|
|
sProblem = "Timing mishap"; |
|
|
|