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.