pub fn commit_new_chain(&mut self, prepared: PreparedBlock) {
        let mut chain = Chain::default();
        let (height, hash) = (prepared.height, prepared.hash);
        chain.push(prepared);
        self.chain_set.insert(Box::new(chain));
        self.update_metrics_for_committed_block(height, hash);
    }
/// Commit block to the non-finalized state as a new chain where its parent
/// is the finalized tip.
Commit block to the non-finalized state as a new chain where its parent
is the finalized tip.
Commit block to the non - finalized state as a new chain where its parent is the finalized tip .
pub fn commit_new_chain(&mut self, prepared: PreparedBlock) {
        let mut chain = Chain::default();
        let (height, hash) = (prepared.height, prepared.hash);
        chain.push(prepared);
        self.chain_set.insert(Box::new(chain));
        self.update_metrics_for_committed_block(height, hash);
    }
pub fn commit_new_chain ( & mut self , prepared : PreparedBlock ) { let mut chain = Chain :: default ( ) ; let ( height , hash ) = ( prepared . height , prepared . hash ) ; chain . push ( prepared ) ; self . chain_set . insert ( Box :: new ( chain ) ) ; self . update_metrics_for_committed_block ( height , hash ) ; }
Commit block to the non-finalized state as a new chain where its parent
is the finalized tip.
Commit block to the non - finalized state as a new chain where its parent is the finalized tip .
&mut self
prepared
PreparedBlock