Struct fuel_txpool::service::TxPoolService
source · [−]pub struct TxPoolService { /* private fields */ }Implementations
Trait Implementations
sourceimpl TxPool for TxPoolService
impl TxPool for TxPoolService
sourcefn insert<'life0, 'async_trait>(
&'life0 self,
txs: Vec<ArcTx>
) -> Pin<Box<dyn Future<Output = Vec<Result<Vec<ArcTx>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn insert<'life0, 'async_trait>(
&'life0 self,
txs: Vec<ArcTx>
) -> Pin<Box<dyn Future<Output = Vec<Result<Vec<ArcTx>>>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
import tx
sourcefn find<'life0, 'life1, 'async_trait>(
&'life0 self,
hashes: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = Vec<Option<ArcTx>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn find<'life0, 'life1, 'async_trait>(
&'life0 self,
hashes: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = Vec<Option<ArcTx>>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
find all tx by its hash
sourcefn find_dependent<'life0, 'life1, 'async_trait>(
&'life0 self,
hashes: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = Vec<ArcTx>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn find_dependent<'life0, 'life1, 'async_trait>(
&'life0 self,
hashes: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = Vec<ArcTx>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
find all dependent tx and return them with requsted dependencies in one list sorted by Price.
sourcefn filter_by_negative<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_ids: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = Vec<TxId>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn filter_by_negative<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_ids: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = Vec<TxId>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Iterete over hashes and return all hashes that we dont have.
sourcefn includable<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ArcTx>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn includable<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = Vec<ArcTx>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Return all sorted transactions that are includable in next block. This is going to be heavy operation, use it with only when needed.
sourcefn block_update<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn block_update<'life0, 'async_trait>(
&'life0 self
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
When block is updated we need to receive all spend outputs and remove them from txpool
sourcefn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_ids: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn remove<'life0, 'life1, 'async_trait>(
&'life0 self,
tx_ids: &'life1 [TxId]
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
remove transaction from pool needed on user demand. Low priority
sourcefn find_one<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 TxId
) -> Pin<Box<dyn Future<Output = Option<ArcTx>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
fn find_one<'life0, 'life1, 'async_trait>(
&'life0 self,
hash: &'life1 TxId
) -> Pin<Box<dyn Future<Output = Option<ArcTx>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
find one tx by its hash
fn subscribe<'life0, 'async_trait>(
&'life0 self,
sub: Arc<dyn Subscriber>
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for TxPoolService
impl Send for TxPoolService
impl Sync for TxPoolService
impl Unpin for TxPoolService
impl !UnwindSafe for TxPoolService
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more