pub fn revert_one(&mut self) -> Option<CommitSet<Key>> {
		match self.mode {
			PruningMode::ArchiveAll => {
				Some(CommitSet::default())
			},
			PruningMode::ArchiveCanonical | PruningMode::Constrained(_) => {
				self.non_canonical.revert_one()
			},
		}
	}
/// Revert all non-canonical blocks with the best block number.
/// Returns a database commit or `None` if not possible.
/// For archive an empty commit set is returned.
Revert all non-canonical blocks with the best block number.
Returns a database commit or `None` if not possible.
For archive an empty commit set is returned.
Revert all non - canonical blocks with the best block number . Returns a database commit or ` None ` if not possible . For archive an empty commit set is returned .
pub fn revert_one(&mut self) -> Option<CommitSet<Key>> {
		match self.mode {
			PruningMode::ArchiveAll => {
				Some(CommitSet::default())
			},
			PruningMode::ArchiveCanonical | PruningMode::Constrained(_) => {
				self.non_canonical.revert_one()
			},
		}
	}
pub fn revert_one ( & mut self ) -> Option < CommitSet < Key > > { match self . mode { PruningMode :: ArchiveAll => { Some ( CommitSet :: default ( ) ) } , PruningMode :: ArchiveCanonical | PruningMode :: Constrained ( _ ) => { self . non_canonical . revert_one ( ) } , } }
Revert all non-canonical blocks with the best block number.
Revert all non - canonical blocks with the best block number .
&mut self
&mut self