fn pop_tip(&mut self) {
        let block_height = self.non_finalized_tip_height();

        let block = self
            .blocks
            .remove(&block_height)
            .expect("only called while blocks is populated");

        assert!(
            !self.blocks.is_empty(),
            "Non-finalized chains must have at least one block to be valid"
        );

        self.revert_chain_with(&block, RevertPosition::Tip);
    }
/// Remove the highest height block of the non-finalized portion of a chain.
Remove the highest height block of the non-finalized portion of a chain.
Remove the highest height block of the non - finalized portion of a chain .
fn pop_tip(&mut self) {
        let block_height = self.non_finalized_tip_height();
        let block = self
            .blocks
            .remove(&block_height)
            .expect("only called while blocks is populated");
        assert!(
            !self.blocks.is_empty(),
            "Non-finalized chains must have at least one block to be valid"
        );
        self.revert_chain_with(&block, RevertPosition::Tip);
    }
fn pop_tip ( & mut self ) { let block_height = self . non_finalized_tip_height ( ) ; let block = self . blocks . remove ( & block_height ) . expect ( " " ) ; assert ! ( self blocks is_empty ( ) " " ) ; self . revert_chain_with ( & block , RevertPosition :: Tip ) ; }
Remove the highest height block of the non-finalized portion of a chain.
Remove the highest height block of the non - finalized portion of a chain .
&mut self