Merge pull request #5476

73caf47 Display time offset in the debug window's Peers tab (Pavel Janík)
26a6bae Add time offset to getpeerinfo output (Pavel Janík)
This commit is contained in:
Wladimir J. van der Laan 2015-01-02 17:47:08 +01:00
commit c986972ad7
No known key found for this signature in database
GPG key ID: 74810B012346C9A6
9 changed files with 44 additions and 6 deletions

View file

@ -3548,7 +3548,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);
}