Skip to main content

execution_gas_params

Function execution_gas_params 

Source
pub fn execution_gas_params(
    gas_data: &GasData,
    kind: &TransactionKind,
    reference_gas_price: u64,
    config: &ProtocolConfig,
) -> Option<(u64, u64)>
Expand description

Budget and price a transaction is metered with, or None when it runs unmetered. Gasless transactions are metered at the reference price up to the computation cap.