pub fn init_genesis_with_settings_and_validate<PF>(
factory: &PF,
genesis_storage_settings: StorageSettings,
validate_genesis_hash: bool,
) -> Result<B256, InitStorageError>where
PF: DatabaseProviderFactory + StaticFileProviderFactory<Primitives: NodePrimitives<BlockHeader: Compact>> + ChainSpecProvider + StageCheckpointReader + BlockNumReader + MetadataProvider + StorageSettingsCache,
PF::ProviderRW: StaticFileProviderFactory<Primitives = PF::Primitives> + StageCheckpointWriter + HistoryWriter + HeaderProvider + HashingWriter + StateWriter + TrieWriter + MetadataWriter + ChainSpecProvider + StorageSettingsCache + RocksDBProviderFactory + NodePrimitivesProvider + 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 with StorageSettings,
optionally validating the DB-resident genesis hash against the chainspec hash.