fn locator_hashes(&self, from: Height) -> Vec<BlockHash> {
        let mut hashes = Vec::new();

        assert!(from <= self.height());

        let last_checkpoint = self.last_checkpoint();

        for height in block::locators_indexes(from).into_iter() {
            if height < last_checkpoint {
                // Don't go past the latest checkpoint. We never want to accept a fork
                // older than our last checkpoint.
                break;
            }
            if let Some(blk) = self.chain.get(height as usize) {
                hashes.push(blk.hash);
            }
        }
        hashes
    }
/// Get the locator hashes for the active chain, starting at the given height.
///
/// *Panics* if the given starting height is out of bounds.
///
Get the locator hashes for the active chain, starting at the given height.
Panics* if the given starting height is out of bounds.
Get the locator hashes for the active chain starting at the given height . Panics * if the given starting height is out of bounds .
fn locator_hashes(&self, from: Height) -> Vec<BlockHash> {
        let mut hashes = Vec::new();
        assert!(from <= self.height());
        let last_checkpoint = self.last_checkpoint();
        for height in block::locators_indexes(from).into_iter() {
            if height < last_checkpoint {
                // Don't go past the latest checkpoint. We never want to accept a fork
                // older than our last checkpoint.
                break;
            }
            if let Some(blk) = self.chain.get(height as usize) {
                hashes.push(blk.hash);
            }
        }
        hashes
    }
fn locator_hashes ( & self , from : Height ) -> Vec < BlockHash > { let mut hashes = Vec :: new ( ) ; assert ! ( from self height ( ) ) ; let last_checkpoint = self . last_checkpoint ( ) ; for height in block :: locators_indexes ( from ) . into_iter ( ) { if height < last_checkpoint { // Don't go past the latest checkpoint. We never want to accept a fork // older than our last checkpoint. break ; } if let Some ( blk ) = self . chain . get ( height as usize ) { hashes . push ( blk . hash ) ; } } hashes }
Get the locator hashes for the active chain, starting at the given height.
Get the locator hashes for the active chain starting at the given height .
&self
from
Height