pub fn recreate_genesis_segment<Block, Client>(
client: &Client,
kzg: Kzg,
erasure_coding: ErasureCoding,
) -> Result<Option<NewArchivedSegment>, Box<dyn Error>>where
Block: BlockT,
Client: ProvideRuntimeApi<Block> + BlockBackend<Block> + HeaderBackend<Block>,
Client::Api: ObjectsApi<Block>,
Expand description
Derive genesis segment on demand, returns Ok(None)
in case genesis block was already pruned