Trait fuel_core_txpool::ports::GasPriceProvider

source ·
pub trait GasPriceProvider {
    // Required method
    fn gas_price(&self, block_height: BlockHeight) -> Option<GasPrice>;
}
Expand description

Trait for getting gas price for the Tx Pool code to look up the gas price for a given block height

Required Methods§

source

fn gas_price(&self, block_height: BlockHeight) -> Option<GasPrice>

Get gas price for specific block height if it is known

Implementations on Foreign Types§

source§

impl<T: GasPriceProvider> GasPriceProvider for Arc<T>

source§

fn gas_price(&self, block_height: BlockHeight) -> Option<GasPrice>

Implementors§