mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge pull request #2160 from petertodd/add-adjustedtime-to-rpc-getinfo
Add adjustedtime to getinfo RPC call
This commit is contained in:
commit
802a3dfdcc
3 changed files with 8 additions and 1 deletions
|
|
@ -1218,9 +1218,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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue