pub fn checkpoint(&self, height: Height) -> Result<CheckpointLayout<ReadOnly>, LayoutError> {
        let cp_name = self.checkpoint_name(height);
        let path = self.cp_manager.get_checkpoint_path(&cp_name);
        if !path.exists() {
            return Err(LayoutError::NotFound(height));
        }
        CheckpointLayout::new(path, height)
    }
/// Returns the layout of the checkpoint with the given height (if
/// there is one).
Returns the layout of the checkpoint with the given height (if
there is one).
Returns the layout of the checkpoint with the given height ( if there is one ) .
pub fn checkpoint(&self, height: Height) -> Result<CheckpointLayout<ReadOnly>, LayoutError> {
        let cp_name = self.checkpoint_name(height);
        let path = self.cp_manager.get_checkpoint_path(&cp_name);
        if !path.exists() {
            return Err(LayoutError::NotFound(height));
        }
        CheckpointLayout::new(path, height)
    }
pub fn checkpoint ( & self , height : Height ) -> Result < CheckpointLayout < ReadOnly > , LayoutError > { let cp_name = self . checkpoint_name ( height ) ; let path = self . cp_manager . get_checkpoint_path ( & cp_name ) ; if ! path . exists ( ) { return Err ( LayoutError :: NotFound ( height ) ) ; } CheckpointLayout :: new ( path , height ) }
Returns the layout of the checkpoint with the given height (if
there is one).
Returns the layout of the checkpoint with the given height ( if there is one ) .
&self
height
Height
&self
height
Height