Trait reth_provider::CanonChainTracker

source ·
pub trait CanonChainTracker: Send + Sync {
    // Required methods
    fn on_forkchoice_update_received(&self, update: &ForkchoiceState);
    fn last_received_update_timestamp(&self) -> Option<Instant>;
    fn on_transition_configuration_exchanged(&self);
    fn last_exchanged_transition_configuration_timestamp(
        &self,
    ) -> Option<Instant>;
    fn set_canonical_head(&self, header: SealedHeader);
    fn set_safe(&self, header: SealedHeader);
    fn set_finalized(&self, header: SealedHeader);
}
Expand description

A type that can track updates related to fork choice updates.

Required Methods§

source

fn on_forkchoice_update_received(&self, update: &ForkchoiceState)

Notify the tracker about a received fork choice update.

source

fn last_received_update_timestamp(&self) -> Option<Instant>

Returns the last time a fork choice update was received from the CL (CanonChainTracker::on_forkchoice_update_received)

source

fn on_transition_configuration_exchanged(&self)

Notify the tracker about a transition configuration exchange.

source

fn last_exchanged_transition_configuration_timestamp(&self) -> Option<Instant>

Returns the last time a transition configuration was exchanged with the CL (CanonChainTracker::on_transition_configuration_exchanged)

source

fn set_canonical_head(&self, header: SealedHeader)

Sets the canonical head of the chain.

source

fn set_safe(&self, header: SealedHeader)

Sets the safe block of the chain.

source

fn set_finalized(&self, header: SealedHeader)

Sets the finalized block of the chain.

Implementors§