diff options
author | practicalswift <practicalswift@users.noreply.github.com> | 2017-07-27 01:09:05 +0200 |
---|---|---|
committer | practicalswift <practicalswift@users.noreply.github.com> | 2017-08-14 17:50:31 +0200 |
commit | 6fb8f5f17c079a7d32c855eae313c740e5f9e6be (patch) | |
tree | acc3b720398d7736a6971c3619bc1dcea744d5d4 /src/wallet/wallet.cpp | |
parent | 140de14a12228cf7af44f59f40a937c2910a0158 (diff) | |
download | bitcoin-6fb8f5f17c079a7d32c855eae313c740e5f9e6be.tar.xz |
Check that -blocknotify command is non-empty before executing
To make BlockNotifyCallback(...) (-blocknotify) consistent with:
* AlertNotify(...) (-alertnotify)
* AddToWallet(...) (-walletnotify)
Diffstat (limited to 'src/wallet/wallet.cpp')
-rw-r--r-- | src/wallet/wallet.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 599e74149c..41ecec9b6b 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -988,7 +988,7 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFlushOnClose) // notify an external script when a wallet transaction comes in or is updated std::string strCmd = gArgs.GetArg("-walletnotify", ""); - if ( !strCmd.empty()) + if (!strCmd.empty()) { boost::replace_all(strCmd, "%s", wtxIn.GetHash().GetHex()); boost::thread t(runCommand, strCmd); // thread runs free |