Function forest_filecoin::genesis::read_genesis_header
source ยท pub async fn read_genesis_header<DB>(
genesis_fp: Option<&Path>,
genesis_bytes: Option<&[u8]>,
db: &DB,
) -> Result<CachingBlockHeader, Error>where
DB: Blockstore,
Expand description
Uses an optional file path or the default genesis to parse the genesis and determine if chain store has existing data for the given genesis.