fn extend_chain(&mut self, height: Height, hash: BlockHash, header: BlockHeader) {
        assert_eq!(header.prev_blockhash, self.chain.last().hash);

        self.headers.insert(hash, height);
        self.orphans.remove(&hash);
        self.chain.push(CachedBlock {
            height,
            hash,
            header,
        });
    }
/// Extend the active chain with a block.
Extend the active chain with a block.
Extend the active chain with a block .
fn extend_chain(&mut self, height: Height, hash: BlockHash, header: BlockHeader) {
        assert_eq!(header.prev_blockhash, self.chain.last().hash);
        self.headers.insert(hash, height);
        self.orphans.remove(&hash);
        self.chain.push(CachedBlock {
            height,
            hash,
            header,
        });
    }
fn extend_chain ( & mut self , height : Height , hash : BlockHash , header : BlockHeader ) { assert_eq ! ( header prev_blockhash self chain last ( ) hash ) ; self . headers . insert ( hash , height ) ; self . orphans . remove ( & hash ) ; self . chain . push ( CachedBlock { height , hash , header , } ) ; }
Extend the active chain with a block.
Extend the active chain with a block .
&mut self
height
Height
hash
BlockHash
header
BlockHeader