func (s *StateStore) Snapshot() (*StateSnapshot, error) {
	snap := &StateSnapshot{
		StateStore: StateStore{
			logger: s.logger,
			db:     s.db.Snapshot(),
		},
	}
	return snap, nil
}
// Snapshot is used to create a point in time snapshot. Because
// we use MemDB, we just need to snapshot the state of the underlying
// database.
Snapshot is used to create a point in time snapshot. Because
we use MemDB, we just need to snapshot the state of the underlying
database.
// Snapshot is used to create a point in time snapshot . Because // we use MemDB we just need to snapshot the state of the underlying // database .
func (s *StateStore) Snapshot() (*StateSnapshot, error) {
	snap := &StateSnapshot{
		StateStore: StateStore{
			logger: s.logger,
			db:     s.db.Snapshot(),
		},
	}
	return snap, nil
}
func ( s * StateStore ) Snapshot ( ) ( * StateSnapshot , error ) { snap := & StateSnapshot { StateStore : StateStore { logger : s . logger , db : s . db . Snapshot ( ) , } , } return snap , nil }
Snapshot is used to create a point in time snapshot.
Snapshot is used to create a point in time snapshot .