pub fn prune_one(&mut self, commit: &mut CommitSet<Key>) {
		if let Some(pruned) = self.death_rows.get(self.pending_prunings) {
			trace!(target: "state-db", "Pruning {:?} ({} deleted)", pruned.hash, pruned.deleted.len());
			let index = self.pending_number + self.pending_prunings as u64;
			commit.data.deleted.extend(pruned.deleted.iter().cloned());
			commit.meta.inserted.push((to_meta_key(LAST_PRUNED, &()), index.encode()));
			commit.meta.deleted.push(pruned.journal_key.clone());
			self.pending_prunings += 1;
		} else {
			warn!(target: "state-db", "Trying to prune when there's nothing to prune");
		}
	}
/// Prune next block. Expects at least one block in the window. Adds changes to `commit`.
Prune next block. Expects at least one block in the window. Adds changes to `commit`.
Prune next block . Expects at least one block in the window . Adds changes to ` commit ` .
pub fn prune_one(&mut self, commit: &mut CommitSet<Key>) {
		if let Some(pruned) = self.death_rows.get(self.pending_prunings) {
			trace!(target: "state-db", "Pruning {:?} ({} deleted)", pruned.hash, pruned.deleted.len());
			let index = self.pending_number + self.pending_prunings as u64;
			commit.data.deleted.extend(pruned.deleted.iter().cloned());
			commit.meta.inserted.push((to_meta_key(LAST_PRUNED, &()), index.encode()));
			commit.meta.deleted.push(pruned.journal_key.clone());
			self.pending_prunings += 1;
		} else {
			warn!(target: "state-db", "Trying to prune when there's nothing to prune");
		}
	}
pub fn prune_one ( & mut self , commit : & mut CommitSet < Key > ) { if let Some ( pruned ) = self . death_rows . get ( self . pending_prunings ) { trace ! ( target " " " " pruned hash pruned deleted len ( ) ) ; let index = self . pending_number + self . pending_prunings as u64 ; commit . data . deleted . extend ( pruned . deleted . iter ( ) . cloned ( ) ) ; commit . meta . inserted . push ( ( to_meta_key ( LAST_PRUNED , & ( ) ) , index . encode ( ) ) ) ; commit . meta . deleted . push ( pruned . journal_key . clone ( ) ) ; self . pending_prunings += 1 ; } else { warn ! ( target " " " " ) ; } }
Prune next block.
Prune next block .
&mut self
commit
&mut CommitSet<Key>
&mut self
commit
&mut CommitSet<Key>