Skip to main content

resolve_remote_trace_hardfork

Function resolve_remote_trace_hardfork 

Source
pub(crate) fn resolve_remote_trace_hardfork(
    configured: Option<FoundryHardfork>,
    endpoint: &ForkEndpointIdentity,
    block_timestamp: Option<u64>,
) -> Option<FoundryHardfork>
Expand description

Resolves the hardfork used to decode a trace executed by the remote node. A configured hardfork is an explicit override; otherwise an Anvil endpoint’s exact execution hardfork is honored before consulting the source chain’s schedule at block_timestamp.