save_stage_checkpoints

Function save_stage_checkpoints 

Source
pub fn save_stage_checkpoints<P>(
    provider: &P,
    from: BlockNumber,
    to: BlockNumber,
    processed: u64,
    total: u64,
) -> ProviderResult<()>
where P: StageCheckpointWriter,
Expand description

Imports history from ERA files. Saves progress of ERA import into stages sync.

Since the ERA import does the same work as HeaderStage and BodyStage, it needs to inform these stages that this work has already been done. Otherwise, there might be some conflict with database integrity.