Skip to main content

init_genesis_with_settings_and_validate

Function init_genesis_with_settings_and_validate 

Source
pub fn init_genesis_with_settings_and_validate<PF>(
    factory: &PF,
    genesis_storage_settings: StorageSettings,
    validate_genesis_hash: bool,
) -> Result<B256, InitStorageError>
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.