7#if defined(HAVE_CONFIG_H)
8#include <config/bitcoin-config.h>
24#if defined(HAVE_SYSTEM)
25 std::string strCmd =
gArgs.
GetArg(
"-alertnotify",
"");
33 std::string singleQuote(
"'");
35 safeStatus = singleQuote + safeStatus + singleQuote;
38 std::thread t(runCommand, strCmd);
52 int64_t timestamp,
bool presync) {
53 uiInterface.NotifyHeaderTip(state, height, timestamp, presync);
57 int progress_percent,
bool resume_possible) {
std::string GetArg(const std::string &strArg, const std::string &strDefault) const
Return string argument or default value.
The block chain is a tree shaped structure starting with the genesis block at the root,...
void headerTip(SynchronizationState state, int64_t height, int64_t timestamp, bool presync) override
void progress(const bilingual_str &title, int progress_percent, bool resume_possible) override
void warning(const std::string &warning) override
void blockTip(SynchronizationState state, CBlockIndex &index) override
static void AlertNotify(const std::string &strMessage)
void ReplaceAll(std::string &in_out, const std::string &search, const std::string &substitute)
CClientUIInterface uiInterface
std::string SanitizeString(std::string_view str, int rule)
Remove unsafe chars.
SynchronizationState
Current sync state passed to tip changed callbacks.