pub fn backup_checkpoint(&self, height: Height) -> Result<(), LayoutError> {
        let cp_name = self.checkpoint_name(height);
        self.cp_manager
            .backup_checkpoint(&cp_name)
            .map_err(|err| LayoutError::IoError {
                path: self.cp_manager.get_checkpoint_path(&cp_name),
                message: format!("failed to backup checkpoint {}", height),
                io_err: err,
            })
    }
/// Creates a copy of the checkpoint with the specified height and places it
/// into a location that is not affected by normal state removal requests.
///
/// This is mostly useful for pinning good fetched states with the same
/// height as the locally computed diverged ones.  This makes it possible to
/// check the difference between these two states and debug the
/// non-determinism even if the whole subnet moved forward.
Creates a copy of the checkpoint with the specified height and places it
into a location that is not affected by normal state removal requests.

This is mostly useful for pinning good fetched states with the same
height as the locally computed diverged ones.  This makes it possible to
check the difference between these two states and debug the
non-determinism even if the whole subnet moved forward.
Creates a copy of the checkpoint with the specified height and places it into a location that is not affected by normal state removal requests . This is mostly useful for pinning good fetched states with the same height as the locally computed diverged ones . This makes it possible to check the difference between these two states and debug the non - determinism even if the whole subnet moved forward .
pub fn backup_checkpoint(&self, height: Height) -> Result<(), LayoutError> {
        let cp_name = self.checkpoint_name(height);
        self.cp_manager
            .backup_checkpoint(&cp_name)
            .map_err(|err| LayoutError::IoError {
                path: self.cp_manager.get_checkpoint_path(&cp_name),
                message: format!("failed to backup checkpoint {}", height),
                io_err: err,
            })
    }
pub fn backup_checkpoint ( & self , height : Height ) -> Result < ( ) , LayoutError > { let cp_name = self . checkpoint_name ( height ) ; self . cp_manager . backup_checkpoint ( & cp_name ) . map_err ( | err | LayoutError :: IoError { path : self . cp_manager . get_checkpoint_path ( & cp_name ) , message : format ! ( " " height ) , io_err : err , } ) }
Creates a copy of the checkpoint with the specified height and places it
into a location that is not affected by normal state removal requests.
Creates a copy of the checkpoint with the specified height and places it into a location that is not affected by normal state removal requests .
&self
height
Height
&self
height
Height