pub fn init_genesis<PF>(factory: &PF) -> Result<B256, InitStorageError>where
PF: DatabaseProviderFactory + StaticFileProviderFactory<Primitives: NodePrimitives<BlockHeader: Compact>> + ChainSpecProvider + StageCheckpointReader + BlockHashReader,
PF::ProviderRW: StaticFileProviderFactory<Primitives = PF::Primitives> + StageCheckpointWriter + HistoryWriter + HeaderProvider + HashingWriter + StateWriter + AsRef<PF::ProviderRW>,
PF::ChainSpec: EthChainSpec<Header = <PF::Primitives as NodePrimitives>::BlockHeader>,
Expand description
Write the genesis block if it has not already been written