reth_db_common::init

Function insert_genesis_state

Source
pub fn insert_genesis_state<'a, 'b, Provider>(
    provider: &Provider,
    alloc: impl Iterator<Item = (&'a Address, &'b GenesisAccount)>,
) -> ProviderResult<()>
where Provider: StaticFileProviderFactory + DBProvider<Tx: DbTxMut> + StateChangeWriter + HeaderProvider + StateWriter + AsRef<Provider>,
Expand description

Inserts the genesis state into the database.