pub trait FinalizationHandler<Data> {
    fn data_finalized<'life0, 'async_trait>(
        &'life0 mut self,
        data: Data
    ) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait, Global>>
    where
        'life0: 'async_trait,
        Self: 'async_trait
; }
Expand description

The source of finalization of the units that consensus produces.

The FinalizationHandler::data_finalized method is called whenever a piece of data input to the algorithm using DataProvider::get_data has been finalized, in order of finalization.

Required Methods

Data, provided by DataProvider::get_data, has been finalized. The calls to this function follow the order of finalization.

Implementors