Useful, intuitive, and avoids creating issues with #22354
Support multiple -*notify commands #22372
pull luke-jr wants to merge 2 commits into bitcoin:master from luke-jr:multinotify changing 3 files +43 −32-
luke-jr commented at 7:14 PM on June 29, 2021: member
- DrahtBot added the label Validation on Jun 29, 2021
- DrahtBot added the label Wallet on Jun 29, 2021
-
DrahtBot commented at 11:39 AM on June 30, 2021: contributor
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Conflicts
No conflicts as of last run.
-
in src/wallet/wallet.cpp:996 in 71adc97c73 outdated
958 | - // https://github.com/bitcoin/bitcoin/pull/13339#issuecomment-537384875 959 | - // A few ways it could be implemented in the future are described in: 960 | - // https://github.com/bitcoin/bitcoin/pull/13339#issuecomment-461288094 961 | - boost::replace_all(strCmd, "%w", ShellEscape(GetName())); 962 | + if (gArgs.IsArgSet("-walletnotify")) { 963 | +#ifdef WIN32
kristapsk commented at 12:03 AM on July 1, 2021:Comment below
#ifndef WIN32from previous code about why it's not supported currently should be copied here IMO.
luke-jr commented at 6:54 PM on December 17, 2021:Copied
kristapsk commented at 12:27 AM on July 1, 2021: contributorConcept ACK
benthecarman commented at 5:23 PM on July 3, 2021: contributorConcept ACK
benthecarman commented at 5:25 PM on July 3, 2021: contributorLooks like this doesn't touch -startupnotify, does that support multiple already?
luke-jr force-pushed on Jul 3, 2021luke-jr commented at 6:05 PM on July 3, 2021: memberWhoops, fixed.
in src/init.cpp:686 in 54b25a8c51 outdated
682 | @@ -683,9 +683,8 @@ static void CleanupBlockRevFiles() 683 | #if HAVE_SYSTEM 684 | static void StartupNotify(const ArgsManager& args) 685 | { 686 | - std::string cmd = args.GetArg("-startupnotify", ""); 687 | - if (!cmd.empty()) { 688 | - std::thread t(runCommand, cmd); 689 | + for (std::string command : gArgs.GetArgs("-startupnotify")) {
maflcko commented at 6:43 PM on November 10, 2021:for (std::string cmd : args.GetArgs("-startupnotify")) {Seems odd to use gArgs when args is passed in. Also, why change the symbol name to increase the diff?
luke-jr commented at 6:54 PM on December 17, 2021:gArgs: Fixed.
Symbol name: It doesn't increase the diff to adjust it to our current style.
DrahtBot added the label Needs rebase on Nov 10, 2021luke-jr referenced this in commit c83d8d7a76 on Dec 14, 2021luke-jr referenced this in commit 6c7304ff6e on Dec 14, 20215498850040scripted-diff: test: rename `strCmd` to `command`
-BEGIN VERIFY SCRIPT- sed -i 's/\bstrCmd\b/command/g' $(git grep -l strCmd) -END VERIFY SCRIPT-
Support multiple -*notify commands 041b1ed8b7luke-jr force-pushed on Dec 17, 2021luke-jr commented at 6:55 PM on December 17, 2021: memberRebased and addressed review comments
DrahtBot removed the label Needs rebase on Dec 17, 2021DrahtBot added the label Needs rebase on May 6, 2022DrahtBot commented at 8:51 AM on May 6, 2022: contributor<!--cf906140f33d8803c4a75a2196329ecb-->
🐙 This pull request conflicts with the target branch and needs rebase.
<sub>Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".</sub>
achow101 commented at 6:34 PM on October 12, 2022: memberClosing this as it has not had any activity in a while. If you are interested in continuing work on this, please leave a comment so that it can be reopened.
achow101 closed this on Oct 12, 2022luke-jr commented at 11:41 PM on November 26, 2022: memberFeel free to reopen. As with most of my PRs, I continue to maintain it for Knots.
bitcoin locked this on Nov 26, 2023
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-04-19 00:14 UTC
More mirrored repositories can be found on mirror.b10c.me