[][src]Module zebrad::components::sync

Modules

downloads

Structs

ChainSync
CheckedTip

Helps work around defects in the bitcoin protocol by checking whether the returned hashes actually extend a chain tip.

Constants

BLOCK_DOWNLOAD_RETRY_LIMIT

Controls how many times we will retry each block download.

BLOCK_DOWNLOAD_TIMEOUT

Controls how long we wait for a block download request to complete.

FANOUT

Controls the number of peers used for each ObtainTips and ExtendTips request.

MIN_LOOKAHEAD_LIMIT

A lower bound on the user-specified lookahead limit, set to two checkpoint intervals so that we're sure that the lookahead limit always contains at least one complete checkpoint interval.

SYNC_RESTART_TIMEOUT

Controls how long we wait to restart syncing after finishing a sync run.

TIPS_RESPONSE_TIMEOUT

Controls how long we wait for a tips response to return.

Type Definitions

BoxError