Changeset View
Changeset View
Standalone View
Standalone View
src/net.cpp
Show First 20 Lines • Show All 722 Lines • ▼ Show 20 Lines | stats.nStartingHeight = nStartingHeight; | ||||
stats.nSendBytes = nSendBytes; | stats.nSendBytes = nSendBytes; | ||||
} | } | ||||
{ | { | ||||
LOCK(cs_vRecv); | LOCK(cs_vRecv); | ||||
stats.mapRecvBytesPerMsgCmd = mapRecvBytesPerMsgCmd; | stats.mapRecvBytesPerMsgCmd = mapRecvBytesPerMsgCmd; | ||||
stats.nRecvBytes = nRecvBytes; | stats.nRecvBytes = nRecvBytes; | ||||
} | } | ||||
stats.fWhitelisted = fWhitelisted; | stats.fWhitelisted = fWhitelisted; | ||||
stats.minFeeFilter = minFeeFilter; | |||||
// It is common for nodes with good ping times to suddenly become lagged, | // It is common for nodes with good ping times to suddenly become lagged, | ||||
// due to a new block arriving or other large transfer. Merely reporting | // due to a new block arriving or other large transfer. Merely reporting | ||||
// pingtime might fool the caller into thinking the node was still | // pingtime might fool the caller into thinking the node was still | ||||
// responsive, since pingtime does not update until the ping is complete, | // responsive, since pingtime does not update until the ping is complete, | ||||
// which might take a while. So, if a ping is taking an unusually long time | // which might take a while. So, if a ping is taking an unusually long time | ||||
// in flight, the caller can immediately detect that this is happening. | // in flight, the caller can immediately detect that this is happening. | ||||
int64_t nPingUsecWait = 0; | int64_t nPingUsecWait = 0; | ||||
▲ Show 20 Lines • Show All 2,375 Lines • Show Last 20 Lines |