compute_jovian_base_fee

Function compute_jovian_base_fee 

pub fn compute_jovian_base_fee<H>(
    chain_spec: impl EthChainSpec + OpHardforks,
    parent: &H,
    timestamp: u64,
) -> Result<u64, EIP1559ParamError>
where H: BlockHeader,
Expand description

Extracts the Jovian 1599 parameters from the encoded extra data from the parent header. Additionally to decode_holocene_base_fee, checks if the next block base fee is less than the minimum base fee, then the minimum base fee is returned.

Caution: Caller must ensure that jovian is active in the parent header.

See also Base fee computation and Minimum base fee in block header