|
|
|
@ -3544,7 +3544,7 @@ void static ProcessGetData(CNode* pfrom)
@@ -3544,7 +3544,7 @@ void static ProcessGetData(CNode* pfrom)
|
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv) |
|
|
|
|
bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv, int64_t nTimeReceived) |
|
|
|
|
{ |
|
|
|
|
RandAddSeedPerfmon(); |
|
|
|
|
LogPrint("net", "received: %s (%u bytes)\n", strCommand, vRecv.size()); |
|
|
|
@ -4054,7 +4054,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
@@ -4054,7 +4054,7 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv)
|
|
|
|
|
|
|
|
|
|
else if (strCommand == "pong") |
|
|
|
|
{ |
|
|
|
|
int64_t pingUsecEnd = GetTimeMicros(); |
|
|
|
|
int64_t pingUsecEnd = nTimeReceived; |
|
|
|
|
uint64_t nonce = 0; |
|
|
|
|
size_t nAvail = vRecv.in_avail(); |
|
|
|
|
bool bPingFinished = false; |
|
|
|
@ -4305,7 +4305,7 @@ bool ProcessMessages(CNode* pfrom)
@@ -4305,7 +4305,7 @@ bool ProcessMessages(CNode* pfrom)
|
|
|
|
|
bool fRet = false; |
|
|
|
|
try |
|
|
|
|
{ |
|
|
|
|
fRet = ProcessMessage(pfrom, strCommand, vRecv); |
|
|
|
|
fRet = ProcessMessage(pfrom, strCommand, vRecv, msg.nTime); |
|
|
|
|
boost::this_thread::interruption_point(); |
|
|
|
|
} |
|
|
|
|
catch (std::ios_base::failure& e) |
|
|
|
|