Bitcoin Core
27.99.0
P2P Digital Currency
|
#include <algorithm>
#include <cassert>
#include <cstdint>
#include <vector>
Go to the source code of this file.
Classes | |
class | CMedianFilter< T > |
Median filter over a stream of values. More... | |
Functions | |
int64_t | GetTimeOffset () |
Functions to keep track of adjusted P2P time. More... | |
void | AddTimeData (const CNetAddr &ip, int64_t nTime) |
void | TestOnlyResetTimeData () |
Reset the internal state of GetTimeOffset() and AddTimeData(). More... | |
Variables | |
static const int64_t | DEFAULT_MAX_TIME_ADJUSTMENT = 70 * 60 |
void AddTimeData | ( | const CNetAddr & | ip, |
int64_t | nTime | ||
) |
Definition at line 42 of file timedata.cpp.
int64_t GetTimeOffset | ( | ) |
Functions to keep track of adjusted P2P time.
Functions to keep track of adjusted P2P time.
Definition at line 30 of file timedata.cpp.
void TestOnlyResetTimeData | ( | ) |
Reset the internal state of GetTimeOffset() and AddTimeData().
Definition at line 109 of file timedata.cpp.
|
static |
Definition at line 13 of file timedata.h.