reth::providers::test_utils

Function insert_genesis

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

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