Skip to main content

Module list

Module list 

Source
Expand description

Checkpoint lists for checkpoint-based block verification

Each checkpoint consists of a coinbase height and block header hash.

Checkpoints can be used to verify their ancestors, by chaining backwards to another checkpoint, via each blockโ€™s parent block hash.

Structsยง

CheckpointList
A list of block height and hash checkpoints.
MAINNET_CHECKPOINT_LIST ๐Ÿ”’
Parsed mainnet checkpoint list, cached to avoid re-parsing on every use.
TESTNET_CHECKPOINT_LIST ๐Ÿ”’
Parsed testnet checkpoint list, cached to avoid re-parsing on every use.

Constantsยง

MAINNET_CHECKPOINTS ๐Ÿ”’
The hard-coded checkpoints for mainnet, generated using the zebra-checkpoints tool.
TESTNET_CHECKPOINTS ๐Ÿ”’
The hard-coded checkpoints for testnet, generated using the zebra-checkpoints tool.

Functionsยง

checkpoint_height_and_hash ๐Ÿ”’
Parses a checkpoint to a block::Height and block::Hash.