reth_storage_api

Trait StageCheckpointWriter

Source
pub trait StageCheckpointWriter: Send + Sync {
    // Required methods
    fn save_stage_checkpoint(
        &self,
        id: StageId,
        checkpoint: StageCheckpoint,
    ) -> ProviderResult<()>;
    fn save_stage_checkpoint_progress(
        &self,
        id: StageId,
        checkpoint: Vec<u8>,
    ) -> ProviderResult<()>;
    fn update_pipeline_stages(
        &self,
        block_number: BlockNumber,
        drop_stage_checkpoint: bool,
    ) -> ProviderResult<()>;
}
Expand description

The trait for updating stage checkpoint related data.

Required Methods§

Source

fn save_stage_checkpoint( &self, id: StageId, checkpoint: StageCheckpoint, ) -> ProviderResult<()>

Save stage checkpoint.

Source

fn save_stage_checkpoint_progress( &self, id: StageId, checkpoint: Vec<u8>, ) -> ProviderResult<()>

Save stage checkpoint progress.

Source

fn update_pipeline_stages( &self, block_number: BlockNumber, drop_stage_checkpoint: bool, ) -> ProviderResult<()>

Update all pipeline sync stage progress.

Implementations on Foreign Types§

Source§

impl<'a, T: 'a + StageCheckpointWriter + ?Sized> StageCheckpointWriter for &'a T
where &'a T: Send + Sync,

Source§

fn save_stage_checkpoint( &self, id: StageId, checkpoint: StageCheckpoint, ) -> ProviderResult<()>

Source§

fn save_stage_checkpoint_progress( &self, id: StageId, checkpoint: Vec<u8>, ) -> ProviderResult<()>

Source§

fn update_pipeline_stages( &self, block_number: BlockNumber, drop_stage_checkpoint: bool, ) -> ProviderResult<()>

Source§

impl<T: StageCheckpointWriter + ?Sized> StageCheckpointWriter for Arc<T>
where Arc<T>: Send + Sync,

Source§

fn save_stage_checkpoint( &self, id: StageId, checkpoint: StageCheckpoint, ) -> ProviderResult<()>

Source§

fn save_stage_checkpoint_progress( &self, id: StageId, checkpoint: Vec<u8>, ) -> ProviderResult<()>

Source§

fn update_pipeline_stages( &self, block_number: BlockNumber, drop_stage_checkpoint: bool, ) -> ProviderResult<()>

Implementors§