reth_provider::test_utils

Function insert_genesis

Source
pub fn insert_genesis<N: ProviderNodeTypes<ChainSpec = ChainSpec>>(
    provider_factory: &ProviderFactory<N>,
    chain_spec: Arc<N::ChainSpec>,
) -> ProviderResult<B256>
Available on crate feature test-utils only.
Expand description

Inserts the genesis alloc from the provided chain spec into the trie.