Expand description
Progress tracking for blockchain syncing.
Structsยง
- TipBlock
Delay ๐ - Measures tip block delays from the tip changes this node observes.
- TipGrowth ๐
- Tracks when the best chain tip height last increased, and the block lag measured when the tip last changed.
Constantsยง
- LOG_
INTERVAL ๐ - The amount of time between progress logs.
- LOG_
TARGET ๐ - The tracing target of the sync 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.
- TIP_
BLOCK_ ๐DELAY_ BACKLOG_ MARGIN - How long before its parent became this nodeโs tip a block can have been mined, and still have its tip delay recorded.
Functionsยง
- record_
tip_ block_ delay - Records how long after its header time each new best chain tip block was committed, with the blockโs network upgrade once the network this node runs on is known, and sends each value to Sentry with the blockโs height.
- 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.