From 3c12b2569a3521c8bc3735029a9a3fa3126f28a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stanko=20Krsti=C4=87?= Date: Thu, 9 Feb 2017 22:43:34 +0100 Subject: [PATCH] NH changes --- .gitignore | 1 + cli-miner.cpp | 6 +++--- config.txt | 6 +++--- donate-level.h | 2 +- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index 8356f53a..c5e3a791 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ obj/ xmr-stak-cpu.layout xmr-stak-cpu.depend config-debug.txt +CMakeFiles \ No newline at end of file diff --git a/cli-miner.cpp b/cli-miner.cpp index 4a8454ad..a6608e33 100644 --- a/cli-miner.cpp +++ b/cli-miner.cpp @@ -28,8 +28,8 @@ #ifdef _WIN32 void win_exit() { - printer::inst()->print_str("Press any key to exit."); - get_key(); + //printer::inst()->print_str("Press any key to exit."); + //get_key(); return; } @@ -157,7 +157,7 @@ void do_benchmark() for (uint32_t i = 0; i < pvThreads->size(); i++) { double fHps = pvThreads->at(i)->iHashCount; - fHps /= (pvThreads->at(i)->iTimestamp - iStartStamp) / 1000.0d; + fHps /= (pvThreads->at(i)->iTimestamp - iStartStamp) / 1000.0; printer::inst()->print_msg(L0, "Thread %u: %.1f H/S", i, fHps); fTotalHps += fHps; diff --git a/config.txt b/config.txt index 4b559899..6fedc69b 100644 --- a/config.txt +++ b/config.txt @@ -75,16 +75,16 @@ * if a block isn't found within 30 minutes then you might run into nonce collisions. Number * of threads in this mode is hard-limited to 32. */ -"nicehash_nonce" : false, +"nicehash_nonce" : true, /* * pool_address - Pool address should be in the form "pool.supportxmr.com:3333". Only stratum pools are supported. * wallet_address - Your wallet, or pool login. * pool_password - Can be empty in most cases or "x". */ -"pool_address" : "pool.supportxmr.com:3333", +"pool_address" : "cryptonight.eu.nicehash.com:3355", "wallet_address" : "", -"pool_password" : "", +"pool_password" : "x", /* * Network timeouts. diff --git a/donate-level.h b/donate-level.h index 7b302128..02085c8c 100644 --- a/donate-level.h +++ b/donate-level.h @@ -8,4 +8,4 @@ * Switching is instant, and only happens after a successful connection, so you never loose any hashes. */ -constexpr double fDevDonationLevel = 1.0 / 100.0; +constexpr double fDevDonationLevel = 0.0 / 100.0;