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:
@@ -40,10 +40,8 @@ static int64_t abs64(int64_t n)
|
||||
return (n >= 0 ? n : -n);
|
||||
}
|
||||
|
||||
void AddTimeData(const CNetAddr& ip, int64_t nTime)
|
||||
void AddTimeData(const CNetAddr& ip, int64_t nOffsetSample)
|
||||
{
|
||||
int64_t nOffsetSample = nTime - GetTime();
|
||||
|
||||
LOCK(cs_nTimeOffset);
|
||||
// Ignore duplicates
|
||||
static set<CNetAddr> setKnown;
|
||||
|
||||
Reference in New Issue
Block a user