pub trait Chain<H: Eq, N: Copy + BlockNumberOps> {
    fn ancestry(&self, base: H, block: H) -> Result<Vec<H>, Error>;

    fn is_equal_or_descendent_of(&self, base: H, block: H) -> bool { ... }
}
Expand description

Chain context necessary for implementation of the finality gadget.

Required Methods§

Get the ancestry of a block up to but not including the base hash. Should be in reverse order from block’s parent.

If the block is not a descendent of base, returns an error.

Provided Methods§

Returns true if block is a descendent of or equal to the given base.

Implementors§