mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-20 15:19:07 +01:00
Wrap boost::replace_all
This commit is contained in:
@@ -92,7 +92,6 @@
|
||||
#include <sys/stat.h>
|
||||
#endif
|
||||
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
#include <boost/signals2/signal.hpp>
|
||||
|
||||
#if ENABLE_ZMQ
|
||||
@@ -1641,7 +1640,7 @@ bool AppInitMain(NodeContext& node, interfaces::BlockAndHeaderTipInfo* tip_info)
|
||||
uiInterface.NotifyBlockTip_connect([block_notify](SynchronizationState sync_state, const CBlockIndex* pBlockIndex) {
|
||||
if (sync_state != SynchronizationState::POST_INIT || !pBlockIndex) return;
|
||||
std::string command = block_notify;
|
||||
boost::replace_all(command, "%s", pBlockIndex->GetBlockHash().GetHex());
|
||||
ReplaceAll(command, "%s", pBlockIndex->GetBlockHash().GetHex());
|
||||
std::thread t(runCommand, command);
|
||||
t.detach(); // thread runs free
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user