Refactor -alertnotify code

Refactor common -alertnotify code into static CAlert::Notify method.
This commit is contained in:
Gavin Andresen
2014-10-07 13:11:48 -04:00
parent 7c6cbff0e5
commit e01a7939d3
3 changed files with 26 additions and 25 deletions

View File

@@ -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.