pub trait FinalizationHandler<Data>: Sync + Send + 'static {
    // Required method
    fn data_finalized(&mut self, data: Data, creator: NodeIndex);
}
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§

source

fn data_finalized(&mut self, data: Data, creator: NodeIndex)

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

Implementors§