Remove unused variables and add a const

This commit is contained in:
Duke
2024-01-06 23:57:39 -08:00
parent 4054140b21
commit c1ab82a881

View File

@@ -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;