Skip to main content

spec_id_by_timestamp_and_block_number

Function spec_id_by_timestamp_and_block_number 

Source
pub fn spec_id_by_timestamp_and_block_number<C>(
    chain_spec: &C,
    timestamp: BlockTimestamp,
    block_number: BlockNumber,
) -> SpecId
where C: EthereumHardforks,
Expand description

Map the latest active Ethereum hardfork at timestamp or block_number to a [SpecId].