change remaining printf to LogPrintf in miner.cpp
This commit is contained in:
parent
9907dafaa9
commit
44f5b19a90
|
@ -473,10 +473,10 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
|
|||
return false;
|
||||
|
||||
//// debug print
|
||||
printf("DogecoinMiner:\n");
|
||||
printf("proof-of-work found \n hash: %s \ntarget: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str());
|
||||
LogPrintf("DogecoinMiner:\n");
|
||||
LogPrintf("proof-of-work found \n hash: %s \ntarget: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str());
|
||||
pblock->print();
|
||||
printf("generated %s\n", FormatMoney(pblock->vtx[0].vout[0].nValue).c_str());
|
||||
LogPrintf("generated %s\n", FormatMoney(pblock->vtx[0].vout[0].nValue).c_str());
|
||||
|
||||
// Found a solution
|
||||
{
|
||||
|
@ -504,7 +504,7 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
|
|||
|
||||
void static DogecoinMiner(CWallet *pwallet)
|
||||
{
|
||||
printf("DogecoinMiner started\n");
|
||||
LogPrintf("DogecoinMiner started\n");
|
||||
SetThreadPriority(THREAD_PRIORITY_LOWEST);
|
||||
RenameThread("dogecoin-miner");
|
||||
|
||||
|
@ -532,7 +532,7 @@ void static DogecoinMiner(CWallet *pwallet)
|
|||
CBlock *pblock = &pblocktemplate->block;
|
||||
IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
|
||||
|
||||
printf("Running DogecoinMiner with %" PRIszu" transactions in block (%u bytes)\n", pblock->vtx.size(),
|
||||
LogPrintf("Running DogecoinMiner with %" PRIszu" transactions in block (%u bytes)\n", pblock->vtx.size(),
|
||||
::GetSerializeSize(*pblock, SER_NETWORK, PROTOCOL_VERSION));
|
||||
|
||||
//
|
||||
|
@ -632,7 +632,7 @@ void static DogecoinMiner(CWallet *pwallet)
|
|||
} }
|
||||
catch (boost::thread_interrupted)
|
||||
{
|
||||
printf("DogecoinMiner terminated\n");
|
||||
LogPrintf("DogecoinMiner terminated\n");
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
@ -664,4 +664,3 @@ void GenerateBitcoins(bool fGenerate, CWallet* pwallet, int nThreads)
|
|||
}
|
||||
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Reference in a new issue