send auxpow debug info to debug.log instead of stdout
This commit is contained in:
parent
5f9b807608
commit
b6a2963042
|
@ -481,9 +481,9 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
|
||||||
|
|
||||||
if (auxpow->GetParentBlockHash() > hashTarget)
|
if (auxpow->GetParentBlockHash() > hashTarget)
|
||||||
return error("AUX POW parent hash %s is not under target %s", auxpow->GetParentBlockHash().GetHex().c_str(), hashTarget.GetHex().c_str());
|
return error("AUX POW parent hash %s is not under target %s", auxpow->GetParentBlockHash().GetHex().c_str(), hashTarget.GetHex().c_str());
|
||||||
//// debug print
|
|
||||||
printf("DogecoinMiner:\n");
|
// print to log
|
||||||
printf("AUX proof-of-work found \n our hash: %s \n parent hash: %s \n target: %s\n",
|
LogPrintf("DogecoinMiner: AUX proof-of-work found; our hash: %s ; parent hash: %s ; target: %s\n",
|
||||||
hash.GetHex().c_str(),
|
hash.GetHex().c_str(),
|
||||||
auxpow->GetParentBlockHash().GetHex().c_str(),
|
auxpow->GetParentBlockHash().GetHex().c_str(),
|
||||||
hashTarget.GetHex().c_str());
|
hashTarget.GetHex().c_str());
|
||||||
|
@ -493,9 +493,8 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey)
|
||||||
if (hash > hashTarget)
|
if (hash > hashTarget)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//// debug print
|
// print to log
|
||||||
printf("DogecoinMiner:\n");
|
LogPrintf("DogecoinMiner: proof-of-work found; hash: %s ; target: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str());
|
||||||
printf("proof-of-work found \n hash: %s \ntarget: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pblock->print();
|
pblock->print();
|
||||||
|
|
Loading…
Reference in a new issue