[][src]Crate ckb_sync

The Sync module

Sync module implement ckb sync protocol as specified here: https://github.com/nervosnetwork/rfcs/tree/master/rfcs/0000-block-sync-protocol

Macros

attempt

Similar to ?, attempt! is used for propagating Status.

Structs

NetTimeProtocol

Collect time offset samples from network peers and send notify to user if offset is too large

Relayer
Status
SyncShared
Synchronizer

Enums

StatusCode

StatusCodes indicate whether a specific operation has been successfully completed. The StatusCode element is a 3-digit integer.

Constants

BAD_MESSAGE_BAN_TIME
BLOCK_DOWNLOAD_TIMEOUT
BLOCK_DOWNLOAD_WINDOW
CHAIN_SYNC_TIMEOUT
CHECK_POINT_WINDOW
EVICTION_HEADERS_RESPONSE_TIME
HEADERS_DOWNLOAD_HEADERS_PER_SECOND
HEADERS_DOWNLOAD_INSPECT_WINDOW
HEADERS_DOWNLOAD_TOLERABLE_BIAS_FOR_SINGLE_SAMPLE
INIT_BLOCKS_IN_TRANSIT_PER_PEER
MAX_BLOCKS_IN_TRANSIT_PER_PEER
MAX_BLOCKS_TO_ANNOUNCE
MAX_HEADERS_LEN
MAX_INVENTORY_LEN
MAX_LOCATOR_SIZE
MAX_OUTBOUND_PEERS_TO_PROTECT_FROM_DISCONNECT
MAX_SCHEDULED_LEN
MAX_TIP_AGE
MAX_UNCONNECTING_HEADERS
POW_INTERVAL
RETRY_ASK_TX_TIMEOUT_INCREASE
STALE_RELAY_AGE_LIMIT
SUSPEND_SYNC_TIME
SYNC_USELESS_BAN_TIME