pub trait TxPool: Send + Sync {
type TxSource;
// Required method
async fn get_source(
&self,
gas_price: u64,
block_height: BlockHeight,
) -> Result<Self::TxSource>;
}
Required Associated Types§
Required Methods§
sourceasync fn get_source(
&self,
gas_price: u64,
block_height: BlockHeight,
) -> Result<Self::TxSource>
async fn get_source( &self, gas_price: u64, block_height: BlockHeight, ) -> Result<Self::TxSource>
Returns the source of includable transactions.
Object Safety§
This trait is not object safe.