Skip to main content

create_backend

Function create_backend 

Source
fn create_backend<N: Network, BLOCK: FoundryBlock + ForkBlockEnv>(
    fork: &CreateFork,
    resolved: &Fork,
    block_env: &BLOCK,
) -> Result<(SharedBackend<N, BLOCK>, BackendHandler<N, BLOCK>)>
Expand description

Creates the backend of a resolved fork.

This loads the disk cache of the fork block, so it only runs for a new fork ID.