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§
sourcefn gas_price(&self, block_height: BlockHeight) -> Option<GasPrice>
fn gas_price(&self, block_height: BlockHeight) -> Option<GasPrice>
Get gas price for specific block height if it is known