boost: drop boost threads for [alert|block|wallet]notify

This commit is contained in:
Cory Fields
2018-02-07 19:19:34 -05:00
parent 08272671d2
commit 004f999946
3 changed files with 6 additions and 4 deletions

View File

@@ -34,7 +34,6 @@
#include <future>
#include <boost/algorithm/string/replace.hpp>
#include <boost/thread.hpp>
std::vector<CWalletRef> vpwallets;
/** Transaction fee set by the user */
@@ -976,7 +975,8 @@ bool CWallet::AddToWallet(const CWalletTx& wtxIn, bool fFlushOnClose)
if (!strCmd.empty())
{
boost::replace_all(strCmd, "%s", wtxIn.GetHash().GetHex());
boost::thread t(runCommand, strCmd); // thread runs free
std::thread t(runCommand, strCmd);
t.detach(); // thread runs free
}
return true;