Expand description
Chain replication protocol for mesh networking (K6.4).
Defines request/response types for incremental chain synchronization between mesh nodes. Chain events are exchanged as serialized JSON (with optional RVF segment format for efficiency).
Structs§
- Chain
Bridge Event - Bridge event anchoring a remote chain’s head in the local chain.
- Chain
Sync Request - Request to sync chain events from a peer.
- Chain
Sync Response - Response with chain events for sync.
- Sync
Frame - Sync frame header (wraps RVF segment payloads).
- Sync
State Digest - Compact state digest for sync stream initialization.
Enums§
- Chain
Fork Status - Fork detection result.
- Chain
Sync Strategy - Strategy for catching up a behind peer.
- Sync
Payload Type - Payload type within a sync frame.
- Sync
Stream Type - Discriminator for QUIC sync streams.
Constants§
- CHECKPOINT_
CATCHUP_ THRESHOLD - Threshold for switching from event-by-event to checkpoint sync.
Functions§
- detect_
chain_ fork - Compare local and remote chain state to detect sync needs.
- stream_
priority - QUIC stream priority per SyncStreamType (lower = higher priority).
- sync_
strategy - Determine sync strategy based on how far behind the peer is.