Skip to main content

Module protocol

Module protocol 

Source
Expand description

Sync protocol types and selection logic (CIP §2.3 - Protocol Selection Rules).

Defines the available sync protocols and the logic to select the optimal one.

Structs§

ProtocolSelection
Result of protocol selection with reasoning.

Enums§

SyncProtocol
Sync protocol selection for negotiation.
SyncProtocolKind
Protocol capability identifier for sync negotiation.

Functions§

calculate_divergence
Calculate the divergence ratio between two handshakes.
is_protocol_supported
Check if a protocol kind is supported by the remote peer.
select_protocol
Select the optimal sync protocol based on handshake information.
select_protocol_with_fallback
Select protocol with fallback if preferred is not supported.