reth::providers::test_utils

Function insert_genesis

pub fn insert_genesis<N>(
    provider_factory: &ProviderFactory<N>,
    chain_spec: Arc<<N as NodeTypes>::ChainSpec>,
) -> Result<FixedBytes<32>, ProviderError>
where N: ProviderNodeTypes<ChainSpec = ChainSpec>,
Available on crate feature test-utils only.
Expand description

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