[−][src]Module nakamoto_common::block::time
Block time and other time-related types.
Structs
AdjustedTime | Network-adjusted time tracker. |
LocalDuration | Time duration as measured locally. |
LocalTime | Local time. |
Constants
MAX_FUTURE_BLOCK_TIME | Maximum a block timestamp can exceed the network-adjusted time before it is considered invalid (2 hours). |
MAX_TIME_ADJUSTMENT | Maximum time adjustment between network and local time (70 minutes). |
MAX_TIME_SAMPLES | Maximum number of samples stored. |
MEDIAN_TIME_SPAN | Number of previous blocks to look at when determining the median block time. |
MIN_TIME_SAMPLES | Minimum number of samples before we adjust local time. |
Traits
Clock | Clock that tells the time. |
Type Definitions
TimeOffset | A time offset, in seconds. |