Refactor -alertnotify code
Refactor common -alertnotify code into static CAlert::Notify method.
This commit is contained in:
@@ -101,7 +101,8 @@ public:
|
||||
bool AppliesToMe() const;
|
||||
bool RelayTo(CNode* pnode) const;
|
||||
bool CheckSignature() const;
|
||||
bool ProcessAlert(bool fThread = true);
|
||||
bool ProcessAlert(bool fThread = true); // fThread means run -alertnotify in a free-running thread
|
||||
static void Notify(const std::string& strMessage, bool fThread);
|
||||
|
||||
/*
|
||||
* Get copy of (active) alert object by hash. Returns a null alert if it is not found.
|
||||
|
||||
Reference in New Issue
Block a user