MCPcopy Create free account
hub / github.com/aleph-zero-foundation/AlephBFT / FinalizationHandlerAdapter

Class FinalizationHandlerAdapter

consensus/src/interface.rs:8–11  ·  view source on GitHub ↗

This adapter allows to map an implementation of [`FinalizationHandler`] onto implementation of [`UnitFinalizationHandler`].

Source from the content-addressed store, hash-verified

6
7/// This adapter allows to map an implementation of [`FinalizationHandler`] onto implementation of [`UnitFinalizationHandler`].
8pub struct FinalizationHandlerAdapter<FH, D, H> {
9 finalization_handler: FH,
10 _phantom: PhantomData<(D, H)>,
11}
12
13impl<FH, D, H> From<FH> for FinalizationHandlerAdapter<FH, D, H> {
14 fn from(value: FH) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected