mirror of
https://github.com/GOSTSec/gostcoin
synced 2025-01-30 00:14:20 +00:00
enable miner
This commit is contained in:
parent
def4d47f84
commit
00677ef3ff
@ -4729,6 +4729,7 @@ void static UnioncoinMiner(CWallet *pwallet)
|
||||
unsigned int nExtraNonce = 0;
|
||||
|
||||
try { loop {
|
||||
// TODO:
|
||||
/* while (vNodes.empty())
|
||||
MilliSleep(1000);*/
|
||||
|
||||
@ -4803,6 +4804,7 @@ void static UnioncoinMiner(CWallet *pwallet)
|
||||
|
||||
// Check for stop or if block needs to be rebuilt
|
||||
boost::this_thread::interruption_point();
|
||||
// TODO:
|
||||
/* if (vNodes.empty())
|
||||
break;*/
|
||||
if (pblock->nNonce >= 0xffff0000)
|
||||
@ -4836,8 +4838,11 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet)
|
||||
minerThreads->interrupt_all();
|
||||
delete minerThreads;
|
||||
minerThreads = NULL;
|
||||
|
||||
return; // TODO: temporary
|
||||
}
|
||||
|
||||
// TODO:
|
||||
/*if (nThreads == 0 || !fGenerate)
|
||||
return;*/
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user