Add time offset to getpeerinfo output

This commit is contained in:
Pavel Janík
2014-12-15 11:06:15 +01:00
parent 13c077c7cf
commit 26a6bae753
5 changed files with 10 additions and 4 deletions

View File

@@ -3450,7 +3450,9 @@ bool static ProcessMessage(CNode* pfrom, string strCommand, CDataStream& vRecv,
pfrom->nStartingHeight, addrMe.ToString(), pfrom->id,
remoteAddr);
AddTimeData(pfrom->addr, nTime);
int64_t nTimeOffset = nTime - GetTime();
pfrom->nTimeOffset = nTimeOffset;
AddTimeData(pfrom->addr, nTimeOffset);
}