diff options
| author | Pavel Janík <[email protected]> | 2014-12-15 11:06:15 +0100 |
|---|---|---|
| committer | Pavel Janík <[email protected]> | 2014-12-15 11:06:15 +0100 |
| commit | 26a6bae7537c73cb4b713293ce29b7c6d71a542d (patch) | |
| tree | 674b4fd2b88216a6cc56eb1933ee043a4ccdd2ea /src/main.cpp | |
| parent | Merge pull request #5471 (diff) | |
| download | discoin-26a6bae7537c73cb4b713293ce29b7c6d71a542d.tar.xz discoin-26a6bae7537c73cb4b713293ce29b7c6d71a542d.zip | |
Add time offset to getpeerinfo output
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp index 7533c3261..d917c6e0e 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -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); } |