pub trait ChainHeight {
    // Required method
    fn height(&self) -> Option<usize>;
}

Required Methods§

source

fn height(&self) -> Option<usize>

| Get current chain height, not including | genesis block (returns 0 if chain only | contains genesis block, nullopt if chain | does not contain any blocks)

Implementors§