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ยง
- Checkpoint
List - 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-checkpointstool. - TESTNET_
CHECKPOINTS ๐ - The hard-coded checkpoints for testnet, generated using the
zebra-checkpointstool.
Functionsยง
- checkpoint_
height_ ๐and_ hash - Parses a checkpoint to a
block::Heightandblock::Hash.