similar to 'walletnotify' this command line option executes a command whenever a transaction enters the mempool
txnotify command line option #6199
pull djpnewton wants to merge 1 commits into bitcoin:master from djpnewton:txnotify changing 3 files +18 −0-
djpnewton commented at 8:20 AM on May 28, 2015: contributor
-
test txnotify command 4be34e3888
-
in src/init.cpp:None in 4be34e3888
457 | @@ -457,6 +458,14 @@ static void BlockNotifyCallback(const uint256& hashNewTip) 458 | boost::thread t(runCommand, strCmd); // thread runs free 459 | } 460 | 461 | +static void TxNotifyCallback(const uint256& txid) 462 | +{ 463 | + std::string strCmd = GetArg("-txnotify", ""); 464 | + 465 | + boost::replace_all(strCmd, "%s", txid.GetHex()); 466 | + boost::thread t(runCommand, strCmd); // thread runs free
jonasschnelli commented at 8:25 AM on May 28, 2015:I think it is a bad idea to start a process for each accepted tx. Why not supporting #6103 and go over sockets?
paveljanik commented at 8:29 AM on May 28, 2015: contributordjpnewton closed this on May 28, 2015MarcoFalke locked this on Sep 8, 2021Contributors
github-metadata-mirror
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 15:15 UTC
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 15:15 UTC
This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me
More mirrored repositories can be found on mirror.b10c.me