Trait MemPoolAdapter
Source pub trait MemPoolAdapter: Send + Sync {
// Required methods
fn pull_txs<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
tx_hashes: Vec<Hash>,
) -> Pin<Box<dyn Future<Output = ProtocolResult<Vec<SignedTransaction>>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn broadcast_tx<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
tx: SignedTransaction,
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_signature<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
tx: SignedTransaction,
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_transaction<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
tx: SignedTransaction,
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn check_storage_exist<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
tx_hash: Hash,
) -> Pin<Box<dyn Future<Output = ProtocolResult<()>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_latest_epoch_id<'life0, 'async_trait>(
&'life0 self,
ctx: Context,
) -> Pin<Box<dyn Future<Output = ProtocolResult<u64>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}