pub trait ChainStateBlockWriter: Send + Sync {
// Required methods
fn save_finalized_block_number(
&self,
block_number: BlockNumber,
) -> ProviderResult<()>;
fn save_safe_block_number(
&self,
block_number: BlockNumber,
) -> ProviderResult<()>;
}
Expand description
Functionality to write the last known chain blocks to the database.
Required Methods§
Sourcefn save_finalized_block_number(
&self,
block_number: BlockNumber,
) -> ProviderResult<()>
fn save_finalized_block_number( &self, block_number: BlockNumber, ) -> ProviderResult<()>
Saves the given finalized block number in the DB.
Sourcefn save_safe_block_number(
&self,
block_number: BlockNumber,
) -> ProviderResult<()>
fn save_safe_block_number( &self, block_number: BlockNumber, ) -> ProviderResult<()>
Saves the given safe block number in the DB.