indentation
This commit is contained in:
@@ -1065,23 +1065,24 @@ void static RandomXMiner()
|
|||||||
cancelSolver = true;
|
cancelSolver = true;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
randomx_flags flags = randomx_get_flags();
|
randomx_flags flags = randomx_get_flags();
|
||||||
// flags |= RANDOMX_FLAG_LARGE_PAGES;
|
// flags |= RANDOMX_FLAG_LARGE_PAGES;
|
||||||
flags |= RANDOMX_FLAG_FULL_MEM;
|
flags |= RANDOMX_FLAG_FULL_MEM;
|
||||||
//flags |= RANDOMX_FLAG_JIT;
|
//flags |= RANDOMX_FLAG_JIT;
|
||||||
randomx_cache *randomxCache = randomx_alloc_cache(flags);
|
randomx_cache *randomxCache = randomx_alloc_cache(flags);
|
||||||
if (randomxCache == NULL) {
|
if (randomxCache == NULL) {
|
||||||
LogPrintf("RandomX cache is null, something is wrong, cannot mine!\n");
|
LogPrintf("RandomX cache is null, something is wrong, cannot mine!\n");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
rxdebug("%s: created randomx flags + cache\n");
|
rxdebug("%s: created randomx flags + cache\n");
|
||||||
|
randomx_dataset *randomxDataset = randomx_alloc_dataset(flags);
|
||||||
|
rxdebug("%s: created dataset\n");
|
||||||
|
|
||||||
|
if( randomxDataset == nullptr) {
|
||||||
|
LogPrintf("%s: allocating randomx dataset failed!\n", __func__);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
randomx_dataset *randomxDataset = randomx_alloc_dataset(flags);
|
|
||||||
rxdebug("%s: created dataset\n");
|
|
||||||
if( randomxDataset == nullptr) {
|
|
||||||
LogPrintf("%s: allocating randomx dataset failed!\n", __func__);
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
miningTimer.start();
|
miningTimer.start();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user