Browse Source

Remove unused variables and add a const

duke
Duke 4 months ago
parent
commit
c1ab82a881
  1. 4
      src/miner.cpp

4
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<std::thread> threads;

Loading…
Cancel
Save