mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
Make adjusted time type safe
This commit is contained in:
parent
fa3be799fe
commit
eeee5ada23
8 changed files with 19 additions and 16 deletions
|
|
@ -32,9 +32,9 @@ int64_t GetTimeOffset()
|
|||
return nTimeOffset;
|
||||
}
|
||||
|
||||
int64_t GetAdjustedTime()
|
||||
NodeClock::time_point GetAdjustedTime()
|
||||
{
|
||||
return GetTime() + GetTimeOffset();
|
||||
return NodeClock::now() + std::chrono::seconds{GetTimeOffset()};
|
||||
}
|
||||
|
||||
#define BITCOIN_TIMEDATA_MAX_SAMPLES 200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue