 |
Bitcoin Core
21.99.0
P2P Digital Currency
|
Go to the documentation of this file.
5 #ifndef BITCOIN_TIMEDATA_H
6 #define BITCOIN_TIMEDATA_H
33 vValues.push_back(initial_value);
51 int vSortedSize =
vSorted.size();
55 return vSorted[vSortedSize / 2];
58 return (
vSorted[vSortedSize / 2 - 1] +
vSorted[vSortedSize / 2]) / 2;
78 #endif // BITCOIN_TIMEDATA_H
static const int64_t DEFAULT_MAX_TIME_ADJUSTMENT
int64_t GetTimeOffset()
Functions to keep track of adjusted P2P time.
int64_t GetAdjustedTime()
void AddTimeData(const CNetAddr &ip, int64_t nTime)
assert(std::addressof(::ChainstateActive().CoinsTip())==std::addressof(coins_cache))