7#if defined(HAVE_CONFIG_H)
8#include <config/bitcoin-config.h>
29#if defined(HAVE_SYSTEM)
30 std::string strCmd =
gArgs.
GetArg(
"-alertnotify",
"");
38 std::string singleQuote(
"'");
40 safeStatus = singleQuote + safeStatus + singleQuote;
43 std::thread t(runCommand, strCmd);
57 int64_t timestamp,
bool presync) {
58 uiInterface.NotifyHeaderTip(state, height, timestamp, presync);
62 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
std::atomic< int > & m_exit_status
void progress(const bilingual_str &title, int progress_percent, bool resume_possible) override
void flushError(const std::string &debug_message) override
The flush error notification is sent to notify the user that an error occurred while flushing block d...
void warning(const std::string &warning) override
void fatalError(const std::string &debug_message, const bilingual_str &user_message={}) override
The fatal error notification is sent to notify the user when an error occurs in kernel code that can'...
void blockTip(SynchronizationState state, CBlockIndex &index) override
bool m_shutdown_on_fatal_error
Useful for tests, can be set to false to avoid shutdown on fatal error.
static void AlertNotify(const std::string &strMessage)
void AbortNode(std::atomic< int > &exit_status, const std::string &debug_message, const bilingual_str &user_message, bool shutdown)
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.