[−][src]Module solana_sdk::clock
Provides information about the network's clock which is made up of ticks, slots, segments, etc...
Constants
DEFAULT_SLOTS_PER_EPOCH | |
DEFAULT_SLOTS_PER_SEGMENT | |
DEFAULT_SLOTS_PER_TURN | |
DEFAULT_TICKS_PER_SECOND | |
DEFAULT_TICKS_PER_SLOT | |
MAX_HASH_AGE_IN_SECONDS | The time window of recent block hash values that the bank will track the signatures
of over. Once the bank discards a block hash, it will reject any transactions that use
that |
MAX_PROCESSING_AGE | |
MAX_RECENT_BLOCKHASHES | |
MAX_TRANSACTION_FORWARDING_DELAY | More delay is expected if CUDA is not enabled (as signature verification takes longer) |
MAX_TRANSACTION_FORWARDING_DELAY_GPU | This is maximum time consumed in forwarding a transaction from one node to next, before it can be processed in the target node |
NUM_CONSECUTIVE_LEADER_SLOTS |
Functions
get_complete_segment_from_slot | Given a slot returns the latest complete segment, if no segment could possibly be complete
for a given slot it returns |
get_segment_from_slot | Converts a slot to a storage segment. Does not indicate that a segment is complete. |
Type Definitions
Epoch | Epoch is a unit of time a given leader schedule is honored, some number of Slots. |
Segment | A segment is some number of slots stored by archivers |
Slot | Slot is a unit of time given to a leader for encoding, is some some number of Ticks long. |