Go to the source code of this file.
◆ BITCOIN_TIMEDATA_MAX_SAMPLES
#define BITCOIN_TIMEDATA_MAX_SAMPLES 200 |
◆ AddTimeData()
void AddTimeData |
( |
const CNetAddr & |
ip, |
|
|
int64_t |
nOffsetSample |
|
) |
| |
◆ GetAdjustedTime()
int64_t GetAdjustedTime |
( |
| ) |
|
◆ GetTimeOffset()
int64_t GetTimeOffset |
( |
| ) |
|
"Never go to sea with two chronometers; take one or three." Our three time sources are:
Functions to keep track of adjusted P2P time.
- System clock
- Median of other nodes clocks
- The user (asking the user to fix the system clock if the first two disagree)
Definition at line 28 of file timedata.cpp.
◆ GUARDED_BY()
◆ g_timeoffset_mutex