mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 06:43:45 +01:00
Merge pull request #5476
73caf47Display time offset in the debug window's Peers tab (Pavel Janík)26a6baeAdd time offset to getpeerinfo output (Pavel Janík)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user