diff options
author | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-07 19:19:34 -0500 |
---|---|---|
committer | Cory Fields <cory-nospam-@coryfields.com> | 2018-02-08 14:35:29 -0500 |
commit | 004f9999464c7ef4a57b281dcbb407e5d193e798 (patch) | |
tree | 2fd9df9f73784808f615402cc1a182f53f3f6abd /src/wallet | |
parent | 08272671d2218eb69589a0639cbb61ef7cde3004 (diff) |
boost: drop boost threads for [alert|block|wallet]notify
Diffstat (limited to 'src/wallet')
-rw-r--r-- | src/wallet/wallet.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/wallet.cpp b/src/wallet/wallet.cpp index 2b8019395c..3b8ecce6da 100644 --- a/src/wallet/wallet.cpp +++ b/src/wallet/wallet.cpp @@ -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; |