ChainDataPruner

Trait ChainDataPruner 

Source
pub trait ChainDataPruner: 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 stored chain data 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 chain data older than the given number of blocks.

Implementors§