X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fwallet.cpp;fp=src%2Fwallet.cpp;h=1b4025d2e01cde37c289d2c3f6b6c26dbe99a7e4;hp=04ce99531a300dcb8ce527960e62a4c8089d8975;hb=60cf27d9500deb3bc80ffa8ce5dc3e8284a4c658;hpb=3fa5baa680a6c95f62454e421b02f91247164d9d diff --git a/src/wallet.cpp b/src/wallet.cpp index 04ce995..1b4025d 100644 --- a/src/wallet.cpp +++ b/src/wallet.cpp @@ -11,10 +11,12 @@ #include "base58.h" #include "kernel.h" #include "coincontrol.h" -#include +#include "main.h" + #include + #include -#include "main.h" +#include using namespace std; extern int64_t nReserveBalance; @@ -736,10 +738,8 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn) std::string strCmd = GetArg("-walletnotify", ""); if ( !strCmd.empty()) - { - boost::replace_all(strCmd, "%s", wtxIn.GetHash().GetHex()); - boost::thread t(runCommand, strCmd); // thread runs free - } + // thread runs free + boost::thread t(runCommand, regex_replace(strCmd, static_cast("%s"), wtxIn.GetHash().GetHex())); } return true;