Module polkadot_node_primitives::approval::time
source · Expand description
Time utilities for approval voting. Time utilities for approval voting subsystems.
Structs§
- 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.
- A clock which uses the actual underlying system clock.
Constants§
- The duration of a single tick in milliseconds.
- How far in the future a tick can be accepted.
Traits§
- A clock which allows querying of the current tick as well as waiting for a tick to be reached.
- Extension methods for clocks.
Functions§
- assumes
slot_duration_millis
evenly divided by tick duration. - Converts a tick to the slot number.
- Converts a tranche from a slot to the tick number.
Type Aliases§
- A base unit of time, starting from the Unix epoch, split into half-second intervals.