code: func handleGetGenerate(s *rpcServer, cmd interface{}, closeChan <-chan struct{}) (interface{}, error) {
  	return s.cfg.CPUMiner.IsMining(), nil
  }
docs: // handleGetGenerate implements the getgenerate command.