solana_program_runtime::loaded_programs

Trait ForkGraph

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

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

Maps relationship between two slots.

Required Methods§

source

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

Returns the BlockRelation of A to B

Provided Methods§

source

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

Returns the epoch of the given slot

Implementors§