code: func (self *StateDB) Snapshot() int {
  	id := self.nextRevisionId
  	self.nextRevisionId++
  	self.validRevisions = append(self.validRevisions, revision{id, self.journal.length()})
  	return id
  }
docs: // Snapshot returns an identifier for the current revision of the state.