Create new signal for notification of new blocks. Use w/ -blocknotify#4599
Create new signal for notification of new blocks. Use w/ -blocknotify#4599jgarzik wants to merge 2 commits intobitcoin:masterfrom
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.
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.
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.