net: correctly initialize nMinPingUsecTime
`nMinPingUsecTime` was left uninitialized in CNode. The correct initialization for a minimum-until-now is int64_t's max value, so initialize it to that. Thanks @MarcoFalke for noticing.
This commit is contained in:
parent
85e84f5e58
commit
9dcea38a6b
|
@ -2147,6 +2147,7 @@ CNode::CNode(SOCKET hSocketIn, CAddress addrIn, std::string addrNameIn, bool fIn
|
||||||
nPingUsecStart = 0;
|
nPingUsecStart = 0;
|
||||||
nPingUsecTime = 0;
|
nPingUsecTime = 0;
|
||||||
fPingQueued = false;
|
fPingQueued = false;
|
||||||
|
nMinPingUsecTime = std::numeric_limits<int64_t>::max();
|
||||||
|
|
||||||
{
|
{
|
||||||
LOCK(cs_nLastNodeId);
|
LOCK(cs_nLastNodeId);
|
||||||
|
|
Loading…
Reference in New Issue