return true;
}
-void BitcoinMiner(CWallet *pwallet, bool fProofOfStake)
+void StakeMiner(CWallet *pwallet)
{
SetThreadPriority(THREAD_PRIORITY_LOWEST);
// Make this thread recognisable as the mining thread
- RenameThread("bitcoin-miner");
+ RenameThread("novacoin-miner");
// Each thread has its own counter
unsigned int nExtraNonce = 0;
- while (fProofOfStake)
+ while (true)
{
if (fShutdown)
return;
Sleep(1000);
if (fShutdown)
return;
- if (!fProofOfStake)
- return;
}
while (pwallet->IsLocked())
//
CBlockIndex* pindexPrev = pindexBest;
- auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, fProofOfStake));
+ auto_ptr<CBlock> pblock(CreateNewBlock(pwallet, true));
if (!pblock.get())
return;
IncrementExtraNonce(pblock.get(), pindexPrev, nExtraNonce);