mithril_signer::services

Trait TransactionPruner

source
pub trait TransactionPruner: Send + Sync {
    // Required method
    fn prune<'life0, 'async_trait>(
        &'life0 self,
        number_of_blocks_to_keep: BlockNumber,
    ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Cardano transactions pruner

Required Methods§

source

fn prune<'life0, 'async_trait>( &'life0 self, number_of_blocks_to_keep: BlockNumber, ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Prune the transactions older than the given number of blocks.

Implementations on Foreign Types§

source§

impl TransactionPruner for CardanoTransactionRepository

source§

fn prune<'life0, 'async_trait>( &'life0 self, number_of_blocks_to_keep: BlockNumber, ) -> Pin<Box<dyn Future<Output = StdResult<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§