-
Notifications
You must be signed in to change notification settings - Fork 38.7k
Create new signal for notification of new blocks. Use w/ -blocknotify #4599
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
|
Untested ACK. |
|
Please remove NotifyBlocksChanged as well. There's no point in having both and it's unused. |
|
@laanwj updated |
|
Thanks! ut ACK. |
|
Updated to avoid connecting signal, if -blocknotify absent. Re-tested absent and present cases. |
|
Nice change to connect the signal conditionally. Two nits:
|
src/main.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.
I'd like this callback moved out of main.cpp, as it's a) just a wrapper arond runCommand b) not referred to in main.cpp but only in init.cpp.
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.
Moving it out of main.cpp is fine. However, init.cpp should not be home to code continuously executed during program runtime, well after initialization completes.
c7b6117 to
ca1b40d
Compare
|
Automatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4599_ca1b40d6ddcfa5d42539fc98b580a3d815a8ef57/ for binaries and test log. |
|
Fixed build bug (#include error). |
Drops lock before calling signal. Not purely necessary, but good practice.