Trait aleph_bft::FinalizationHandler
source · 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§
sourcefn data_finalized(&mut self, data: Data, creator: NodeIndex)
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.