docs: some docs on sync gap channel (#15817)

This commit is contained in:
Matthias Seitz
2025-04-19 12:21:12 +02:00
committed by GitHub
parent c148da8bc9
commit a1b8ceea41
2 changed files with 5 additions and 1 deletions

View File

@@ -75,7 +75,9 @@ pub struct Pipeline<N: ProviderNodeTypes> {
event_sender: EventSender<PipelineEvent>,
/// Keeps track of the progress of the pipeline.
progress: PipelineProgress,
/// A receiver for the current chain tip to sync to.
/// A Sender for the current chain tip to sync to.
///
/// This is used to notify the headers stage about a new sync target.
tip_tx: Option<watch::Sender<B256>>,
metrics_tx: Option<MetricEventsSender>,
/// Whether an unwind should fail the syncing process. Should only be set when downloading

View File

@@ -49,6 +49,8 @@ pub struct HeaderStage<Provider, Downloader: HeaderDownloader> {
/// Strategy for downloading the headers
downloader: Downloader,
/// The tip for the stage.
///
/// This determines the sync target of the stage (set by the pipeline).
tip: watch::Receiver<B256>,
/// Consensus client implementation
consensus: Arc<dyn HeaderValidator<Downloader::Header>>,