fuel_core_producer::block_producer::gas_price

Trait GasPriceProvider

source
pub trait GasPriceProvider {
    // Required method
    fn next_gas_price<'life0, 'async_trait>(
        &'life0 self,
    ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Interface for retrieving the gas price for a block

Required Methods§

source

fn next_gas_price<'life0, 'async_trait>( &'life0 self, ) -> Pin<Box<dyn Future<Output = Result<u64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

The gas price for all transactions in the block.

Implementors§