Skip to main content

is_tempo_hardfork_active

Function is_tempo_hardfork_active 

Source
pub async fn is_tempo_hardfork_active<N: Network, P: Provider<N>>(
    provider: &P,
    hardfork: TempoHardfork,
) -> Result<bool>
Expand description

Returns whether hardfork is active at the head of the chain behind provider.

Queries tempo_forkSchedule and falls back to anvil_nodeInfo for Anvil nodes, which do not serve the fork schedule. Fails when neither source reports a hardfork known to this build.