#include <algorithm>
#include <assert.h>
#include <stdint.h>
#include <vector>
Go to the source code of this file.
◆ AddTimeData()
◆ GetAdjustedTime()
◆ GetTimeOffset()
Functions to keep track of adjusted P2P time
"Never go to sea with two chronometers; take one or three." Our three time sources are:
- System clock
- Median of other nodes clocks
- The user (asking the user to fix the system clock if the first two disagree)
◆ DEFAULT_MAX_TIME_ADJUSTMENT
const int64_t DEFAULT_MAX_TIME_ADJUSTMENT = 70 * 60 |
|
static |