diff options
| author | Patrick Lodder <[email protected]> | 2014-07-25 16:43:18 +0200 |
|---|---|---|
| committer | Patrick Lodder <[email protected]> | 2014-08-01 16:47:03 +0200 |
| commit | b6a29630421372010da48ebd788535a5ffa5fb5b (patch) | |
| tree | a873aa7ca0fb77da4818f2e1d745596bbbec5696 /src/miner.cpp | |
| parent | Replace getauxblock CBigNum with CScriptNum (diff) | |
| download | discoin-b6a29630421372010da48ebd788535a5ffa5fb5b.tar.xz discoin-b6a29630421372010da48ebd788535a5ffa5fb5b.zip | |
send auxpow debug info to debug.log instead of stdout
Diffstat (limited to 'src/miner.cpp')
| -rw-r--r-- | src/miner.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/src/miner.cpp b/src/miner.cpp index 5de11039a..97b04897d 100644 --- a/src/miner.cpp +++ b/src/miner.cpp @@ -481,9 +481,9 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) 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()); - //// debug print - printf("DogecoinMiner:\n"); - printf("AUX proof-of-work found \n our hash: %s \n parent hash: %s \n target: %s\n", + + // print to log + LogPrintf("DogecoinMiner: AUX proof-of-work found; our hash: %s ; parent hash: %s ; target: %s\n", hash.GetHex().c_str(), auxpow->GetParentBlockHash().GetHex().c_str(), hashTarget.GetHex().c_str()); @@ -493,9 +493,8 @@ bool CheckWork(CBlock* pblock, CWallet& wallet, CReserveKey& reservekey) if (hash > hashTarget) 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()); + // print to log + LogPrintf("DogecoinMiner: proof-of-work found; hash: %s ; target: %s\n", hash.GetHex().c_str(), hashTarget.GetHex().c_str()); } pblock->print(); |