referrerpolicy=no-referrer-when-downgrade

Crate finality_relay

Source
Expand description

This crate has single entrypoint to run synchronization loop that is built around finality proofs, as opposed to headers synchronization loop, which is built around headers. The headers are still submitted to the target node, but are treated as auxiliary data as we are not trying to submit all source headers to the target node.

Structs§

FinalityProofsBuf
Source finality proofs buffer.
FinalityProofsStream
Source finality proofs stream that may be restarted.
FinalitySyncParams
Finality proof synchronization loop parameters.
SyncLoopMetrics
Headers sync metrics.

Enums§

HeadersToRelay
Type of headers that we relay.

Traits§

FinalityPipeline
Base finality pipeline.
FinalitySyncPipeline
Finality proofs synchronization pipeline.
SourceClient
Source client used in finality synchronization loop.
SourceClientBase
Source client used in finality related loops.
SourceHeader
Header that we’re receiving from source node.
TargetClient
Target client used in finality synchronization loop.

Functions§

metrics_prefix
Return prefix that will be used by default to expose Prometheus metrics of the finality proofs sync loop.
run
Run finality proofs synchronization loop.