test
This commit is contained in:
@@ -507,7 +507,7 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
} while (true);
|
} while (true);
|
||||||
//fprintf(stderr,"Found peers\n");
|
//fprintf(stderr,"Found peers\n");
|
||||||
}
|
}
|
||||||
fprintf(stderr,"create new block\n");
|
//fprintf(stderr,"create new block\n");
|
||||||
//
|
//
|
||||||
// Create new block
|
// Create new block
|
||||||
//
|
//
|
||||||
@@ -581,6 +581,7 @@ void static BitcoinMiner(CWallet *pwallet)
|
|||||||
std::lock_guard<std::mutex> lock{m_cs};
|
std::lock_guard<std::mutex> lock{m_cs};
|
||||||
cancelSolver = false;
|
cancelSolver = false;
|
||||||
}
|
}
|
||||||
|
fprintf(stderr,"Block found %d\n",pblock->nHeight);
|
||||||
SetThreadPriority(THREAD_PRIORITY_LOWEST);
|
SetThreadPriority(THREAD_PRIORITY_LOWEST);
|
||||||
// In regression test mode, stop mining after a block is found.
|
// In regression test mode, stop mining after a block is found.
|
||||||
if (chainparams.MineBlocksOnDemand()) {
|
if (chainparams.MineBlocksOnDemand()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user