Drops lock before calling signal. Not purely necessary, but good practice.
Create new signal for notification of new blocks. Use w/ -blocknotify #4599
pull jgarzik wants to merge 2 commits into bitcoin:master from jgarzik:blocknotify-signal changing 4 files +19 −20-
jgarzik commented at 6:52 PM on July 28, 2014: contributor
-
sipa commented at 8:35 PM on July 28, 2014: member
Untested ACK.
-
laanwj commented at 7:21 AM on July 29, 2014: member
Please remove NotifyBlocksChanged as well. There's no point in having both and it's unused.
-
laanwj commented at 6:39 AM on July 30, 2014: member
Thanks!
ut ACK.
- jgarzik added this to the milestone 0.10.0 on Jul 31, 2014
- jgarzik added the label Improvement on Jul 31, 2014
-
jgarzik commented at 4:12 AM on July 31, 2014: contributor
Updated to avoid connecting signal, if -blocknotify absent. Re-tested absent and present cases.
-
sipa commented at 4:39 AM on July 31, 2014: member
Nice change to connect the signal conditionally. Two nits:
- No need to check for the -blocknotify argument being empty.
- The function being bound can have a much clearer name ("BlockNotifyCallback" ?).
-
ui_interface: remove unused NotifyBlocksChanged signal beb36e800c
-
Create new signal for notification of new blocks. Use w/ -blocknotify ca1b40d6dd
-
in src/main.cpp:None in 9dd8483ee5 outdated
2124 | @@ -2127,6 +2125,14 @@ static bool ActivateBestChainStep(CValidationState &state, CBlockIndex *pindexMo 2125 | return true; 2126 | } 2127 | 2128 | +void BlockNotifyCallback(const uint256& hashNewTip)
laanwj commented at 6:48 AM on July 31, 2014: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.
jgarzik commented at 4:18 PM on August 14, 2014: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.
jgarzik force-pushed on Aug 25, 2014BitcoinPullTester commented at 7:09 PM on August 25, 2014: noneAutomatic sanity-testing: PASSED, see http://jenkins.bluematt.me/pull-tester/p4599_ca1b40d6ddcfa5d42539fc98b580a3d815a8ef57/ 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 7:26 PM on August 25, 2014: contributorFixed build bug (#include error).
jgarzik referenced this in commit 309aa76d27 on Aug 29, 2014jgarzik closed this on Aug 29, 2014jgarzik deleted the branch on Aug 29, 2014jgarzik cross-referenced this on Aug 30, 2014 from issue Adds publishing blocks and transactions over ZMQ by jmcorganbitcoin locked this on Sep 8, 2021ContributorsLabelsMilestone
0.10.0
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