Module progress

Source
Expand description

Progress tracking for blockchain syncing.

Constants§

LOG_INTERVAL 🔒
The amount of time between progress logs.
MAX_CLOSE_TO_TIP_BLOCKS 🔒
The number of blocks we consider to be close to the tip.
MIN_BLOCKS_MINED_AFTER_CHECKPOINT_UPDATE 🔒
The minimum number of extra blocks mined between updating a checkpoint list, and running an automated test that depends on that list.
MIN_SYNC_WARNING_BLOCKS 🔒
Skip slow sync warnings when we are this close to the tip.
PROGRESS_BAR_INTERVAL 🔒
The amount of time between progress bar updates.
SYNC_PERCENT_FRAC_DIGITS 🔒
The number of fractional digits in sync percentages.

Functions§

show_block_chain_progress
Logs Zebra’s estimated progress towards the chain tip every minute or so, and updates a terminal progress bar every few seconds.