-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Simplify and rename CheckWork to ProcessBlockFound #4603
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
src/miner.cpp
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You will print "proof-of-work found" for attempts that do not match the target.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.