فهرست منبع

Improved benchmark instructions

tevador 6 سال پیش
والد
کامیت
88268ae325
1فایلهای تغییر یافته به همراه7 افزوده شده و 1 حذف شده
  1. 7 1
      src/tests/benchmark.cpp

+ 7 - 1
src/tests/benchmark.cpp

@@ -160,11 +160,17 @@ int main(int argc, char** argv) {
 
 	std::cout << "RandomX benchmark v1.1.5" << std::endl;
 
-	if (help || (!miningMode && !verificationMode)) {
+	if (help) {
 		printUsage(argv[0]);
 		return 0;
 	}
 
+	if (!miningMode && !verificationMode) {
+		std::cout << "Please select either the fast mode (--mine) or the slow mode (--verify)" << std::endl;
+		std::cout << "Run '" << argv[0] << " --help' to see all supported options" << std::endl;
+		return 0;
+	}
+
 	std::atomic<uint32_t> atomicNonce(0);
 	AtomicHash result;
 	std::vector<randomx_vm*> vms;