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§
Sourcefn relationship(&self, a: u64, b: u64) -> BlockRelation
fn relationship(&self, a: u64, b: u64) -> BlockRelation
Returns the BlockRelation of A to B
Provided Methods§
Sourcefn slot_epoch(&self, _slot: u64) -> Option<u64>
fn slot_epoch(&self, _slot: u64) -> Option<u64>
Returns the epoch of the given slot