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 propagatingStatus
.
Structs§
- Active
Chain - ActiveChain captures a point-in-time view of indexed chain of blocks.
- Block
Filter - Filter protocol handle
- NetTime
Protocol - 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
- Sync
Shared - Sync state shared between sync and relayer protocol
- Synchronizer
- Sync protocol handle
Enums§
- Status
Code - StatusCodes indicate whether a specific operation has been successfully completed. The StatusCode element is a 3-digit integer.