Expand description
Time utilities for approval voting. Time utilities for approval voting subsystems.
Structs§
- Delayed
Approval Timer - A list of delayed futures that gets triggered when the waiting time has expired and it is time to sign the candidate. We have a timer per relay-chain block.
- System
Clock - A clock which uses the actual underlying system clock.
Constants§
- TICK_
DURATION_ MILLIS - The duration of a single tick in milliseconds.
- TICK_
TOO_ FAR_ IN_ FUTURE - How far in the future a tick can be accepted.
Traits§
- Clock
- A clock which allows querying of the current tick as well as waiting for a tick to be reached.
- Clock
Ext - Extension methods for clocks.
Functions§
- slot_
number_ to_ tick - assumes
slot_duration_millis
evenly divided by tick duration. - tick_
to_ slot_ number - Converts a tick to the slot number.
- tranche_
to_ tick - Converts a tranche from a slot to the tick number.
Type Aliases§
- Tick
- A base unit of time, starting from the Unix epoch, split into half-second intervals.