pub trait ForkGraph {
    // Required method
    fn relationship(&self, a: u64, b: u64) -> BlockRelation;

    // Provided method
    fn slot_epoch(&self, _slot: u64) -> Option<u64> { ... }
}
Expand description

Maps relationship between two slots.

Required Methods§

Source

fn relationship(&self, a: u64, b: u64) -> BlockRelation

Returns the BlockRelation of A to B

Provided Methods§

Source

fn slot_epoch(&self, _slot: u64) -> Option<u64>

Returns the epoch of the given slot

Implementations on Foreign Types§

Source§

impl ForkGraph for TridentForkGraph

Source§

fn relationship(&self, _a: u64, _b: u64) -> BlockRelation

Implementors§