Trait finality_grandpa::Chain
source · pub trait Chain<H: Eq, N: Copy + BlockNumberOps> {
// Required method
fn ancestry(&self, base: H, block: H) -> Result<Vec<H>, Error>;
// Provided method
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§
Provided Methods§
sourcefn is_equal_or_descendent_of(&self, base: H, block: H) -> bool
fn is_equal_or_descendent_of(&self, base: H, block: H) -> bool
Returns true if block
is a descendent of or equal to the given base
.