6 lines less with no functional difference.
Simplify and rename CheckWork to ProcessBlockFound #4603
pull jtimon wants to merge 1 commits into bitcoin:master from jtimon:miner changing 1 files +4 −11-
jtimon commented at 10:37 PM on July 29, 2014: contributor
-
in src/miner.cpp:None in 16b2944d41 outdated
490 | @@ -500,7 +491,10 @@ void static BitcoinMiner(CWallet *pwallet) 491 | assert(hash == pblock->GetHash()); 492 | 493 | SetThreadPriority(THREAD_PRIORITY_NORMAL); 494 | - CheckWork(pblock, *pwallet, reservekey); 495 | + //// debug print 496 | + LogPrintf("BitcoinMiner:\n"); 497 | + LogPrintf("proof-of-work found \n hash: %s \ntarget: %s\n", hash.GetHex(), hashTarget.GetHex());
sipa commented at 11:19 PM on July 29, 2014:You will print "proof-of-work found" for attempts that do not match the target.
sipa commented at 11:27 PM on July 29, 2014:Apologies, it seems we checked the hash vs target twice (and a third time inside ProcessBlock!), and you're removing one. Good.
gavinandresen commented at 11:20 PM on July 29, 2014: contributorACK. nit: I'd delete the useless comment: //// debug print
jtimon commented at 12:21 AM on July 30, 2014: contributorDone, now it's 7 lines less.
Simplify and rename CheckWork to ProcessBlockFound f0c2915f66BitcoinPullTester commented at 12:46 AM on July 30, 2014: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4603_f0c2915f66ade456c9d7847ea64fef09e1a12975/ for binaries and test log. This test script verifies pulls every time they are updated. It, however, dies sometimes and fails to test properly. If you are waiting on a test, please check timestamps to verify that the test.log is moving at http://jenkins.bluematt.me/pull-tester/current/ Contact BlueMatt on freenode if something looks broken.
jgarzik commented at 2:30 AM on July 30, 2014: contributorut ACK
laanwj added the label Improvement on Jul 31, 2014laanwj merged this on Aug 12, 2014laanwj closed this on Aug 12, 2014laanwj referenced this in commit a38a98c476 on Aug 12, 2014jtimon deleted the branch on Aug 12, 2014jtimon cross-referenced this on Aug 30, 2014 from issue Finish Proof class by jtimonpaveljanik cross-referenced this on Dec 28, 2014 from issue rename checkwork by ghostjonasschnelli referenced this in commit 2a72e92ffc on Dec 29, 2014bitcoin locked this on Sep 8, 2021ContributorsLabels
This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-05-20 06:55 UTC