pub trait Finalizer<J: Justification> {
    type Error: Display;

    // Required method
    fn finalize(&self, justification: J) -> Result<(), Self::Error>;
}
Expand description

A facility for finalizing blocks using justifications.

Required Associated Types§

Required Methods§

source

fn finalize(&self, justification: J) -> Result<(), Self::Error>

Finalize a block using this justification. Since the justification contains the header, we don’t need to additionally specify the block.

Implementors§

source§

impl<BE, C> Finalizer<Justification> for PhronFinalizer<Block, BE, C>
where BE: Backend<Block>, C: HeaderBackend<Block> + LockImportRun<Block, BE> + SubstrateFinalizer<Block, BE>,

§

type Error = Error