Trait sc_consensus_epochs::IsDescendentOfBuilder[][src]

pub trait IsDescendentOfBuilder<Hash> {
    type Error: Error;
    type IsDescendentOf: Fn(&Hash, &Hash) -> Result<bool, Self::Error>;
    fn build_is_descendent_of(
        &self,
        current: Option<(Hash, Hash)>
    ) -> Self::IsDescendentOf; }
Expand description

A builder for is_descendent_of functions.

Associated Types

The error returned by the function.

A function that can tell you if the second parameter is a descendent of the first.

Required methods

Build an is_descendent_of function.

The current parameter can be Some with the details a fresh block whose details aren’t yet stored, but its parent is.

The format of current when Some is (current, current_parent).

Implementors