mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-12 15:09:59 +01:00
Make adjusted time type safe
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user