aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorMacroFake <falke.marco@gmail.com>2022-05-05 08:28:29 +0200
committerMacroFake <falke.marco@gmail.com>2022-05-05 20:50:24 +0200
commitfa2deae2a86417d7e0d4cd33fb933b1000d20313 (patch)
tree949c81b62fd5399d478a28dcf0701f8d52ef2d96 /src/init.cpp
parentc367736f85ac7f63a63cbfa0bcc05a42277f04bc (diff)
downloadbitcoin-fa2deae2a86417d7e0d4cd33fb933b1000d20313.tar.xz
Wrap boost::replace_all
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 13a4b3f433..713598f411 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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
});