[][src]Trait hycon_rust::consensus::BlockForkChoice

pub trait BlockForkChoice {
    fn fork_choice(&self, other: &Self) -> Ordering;
}

BlockForkChoice Trait

Acts as a comparator between two blocks to give precedence to one over the other in the event of a forking event

Required methods

fn fork_choice(&self, other: &Self) -> Ordering

Compares two blocks and returns an ordering between them

Arguments

  • other - some other block to compare to

Returns

An ordering between self and other

Loading content...

Implementors

impl<HeaderType> BlockForkChoice for Meta<HeaderType> where
    HeaderType: BlockHeader + Clone + Proto + Encode
[src]

Loading content...