Simplify and rename CheckWork to ProcessBlockFound#4603
Simplify and rename CheckWork to ProcessBlockFound#4603laanwj merged 1 commit intobitcoin:masterfrom
Conversation
src/miner.cpp
Outdated
There was a problem hiding this comment.
You will print "proof-of-work found" for attempts that do not match the target.
There was a problem hiding this comment.
Apologies, it seems we checked the hash vs target twice (and a third time inside ProcessBlock!), and you're removing one. Good.
|
ACK. nit: I'd delete the useless comment: //// debug print |
|
Done, now it's 7 lines less. |
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4603_f0c2915f66ade456c9d7847ea64fef09e1a12975/ for binaries and test log. |
|
ut ACK |
|
Ping @laanwj removing code here too. |
f0c2915 Simplify and rename CheckWork to ProcessBlockFound (jtimon)
- there is no use outside miner.cpp
6 lines less with no functional difference.