Crate ckb_sync

Source
Expand description

§The Sync module

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

Macros§

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

Structs§

ActiveChain
ActiveChain captures a point-in-time view of indexed chain of blocks.
BlockFilter
Filter protocol handle
NetTimeProtocol
Collect time offset samples from network peers and send notify to user if offset is too large
Relayer
Relayer protocol handle
Status
Process message status
SyncShared
Sync state shared between sync and relayer protocol
Synchronizer
Sync protocol handle

Enums§

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