diff --git a/src/miner.cpp b/src/miner.cpp index ff83e9e9c..81fd936a6 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -1079,7 +1079,7 @@ void static RandomXMiner() // Each thread has its own counter unsigned int nExtraNonce = 0; - uint8_t *script; uint64_t total; int32_t i,j,gpucount=HUSH_MAXGPUCOUNT,notaryid = -1; + int32_t gpucount=HUSH_MAXGPUCOUNT; while ( (ASSETCHAIN_INIT == 0 || HUSH_INITDONE == 0) ) { sleep(1); @@ -1204,7 +1204,7 @@ void static RandomXMiner() rxdebug("%s: initialized cache with keyHeight=%d, randomxBlockKey=%s\n", keyHeight, randomxBlockKey.ToString().c_str()); } - int initThreadCount = std::thread::hardware_concurrency(); + const int initThreadCount = std::thread::hardware_concurrency(); if(initThreadCount > 1) { rxdebug("%s: initializing dataset with %d threads\n", initThreadCount); std::vector threads;