mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-14 12:43:40 +02:00
Merge 74d9f4bd95 into merged_master (Bitcoin PR bitcoin/bitcoin#25068)
This commit is contained in:
commit
fcd2946158
8 changed files with 22 additions and 19 deletions
|
|
@ -61,12 +61,11 @@
|
|||
#include <dynafed.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
#include <numeric>
|
||||
#include <optional>
|
||||
#include <string>
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
|
||||
using node::BLOCKFILE_CHUNK_SIZE;
|
||||
using node::BlockManager;
|
||||
using node::BlockMap;
|
||||
|
|
@ -1670,7 +1669,7 @@ static void AlertNotify(const std::string& strMessage)
|
|||
std::string singleQuote("'");
|
||||
std::string safeStatus = SanitizeString(strMessage);
|
||||
safeStatus = singleQuote+safeStatus+singleQuote;
|
||||
boost::replace_all(strCmd, "%s", safeStatus);
|
||||
ReplaceAll(strCmd, "%s", safeStatus);
|
||||
|
||||
std::thread t(runCommand, strCmd);
|
||||
t.detach(); // thread runs free
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue