git://git.novaco.in
/
novacoin.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Add timeoffset to getinfo output
[novacoin.git]
/
src
/
util.cpp
diff --git
a/src/util.cpp
b/src/util.cpp
index
027ee10
..
55a3645
100644
(file)
--- a/
src/util.cpp
+++ b/
src/util.cpp
@@
-1201,9
+1201,14
@@
void SetMockTime(int64 nMockTimeIn)
static int64 nTimeOffset = 0;
+int64 GetTimeOffset()
+{
+ return nTimeOffset;
+}
+
int64 GetAdjustedTime()
{
- return GetTime() + nTimeOffset;
+ return GetTime() + GetTimeOffset();
}
void AddTimeData(const CNetAddr& ip, int64 nTime)