Trait GasPriceProvider

Source
pub trait GasPriceProvider:
    Send
    + Sync
    + 'static {
    // Required method
    fn next_gas_price(&self) -> 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 next_gas_price(&self) -> GasPrice

Calculate gas price for the next block.

Implementors§