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

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.

BLOCK_VERIFY_TIMEOUT

Controls how long we wait for a block verify task to complete.

FANOUT

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

LOOKAHEAD_LIMIT

Controls how far ahead of the chain tip the syncer tries to download before waiting for queued verifications to complete. Set to twice the maximum checkpoint distance.

MAX_CHECKPOINT_DOWNLOAD_SECONDS

The maximum amount of time that Zebra should take to download a checkpoint full of blocks. Based on the current MAX_CHECKPOINT_BYTE_SIZE.

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.

TIPS_RETRY_TIMEOUT

Controls how long we wait to retry ExtendTips after it fails.

Type Definitions

Error
ReportAndHash