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.