reth_db_common::init

Function init_genesis

Source
pub fn init_genesis<PF>(factory: &PF) -> Result<B256, InitDatabaseError>
where PF: DatabaseProviderFactory + StaticFileProviderFactory + ChainSpecProvider + BlockHashReader, PF::ProviderRW: StaticFileProviderFactory + StageCheckpointWriter + HistoryWriter + HeaderProvider + HashingWriter + StateChangeWriter + StateWriter + AsRef<PF::ProviderRW>,
Expand description

Write the genesis block if it has not already been written