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.