diff options
| author | Gavin Andresen <[email protected]> | 2014-10-07 13:11:48 -0400 |
|---|---|---|
| committer | Gavin Andresen <[email protected]> | 2014-10-09 10:25:30 -0400 |
| commit | e01a7939d3a3b231f68ae2f36cbc4de0cf4d4999 (patch) | |
| tree | 4abe870bb84c4667b4b901f458457cca7b620029 /src/alert.h | |
| parent | Merge pull request #4976 (diff) | |
| download | discoin-e01a7939d3a3b231f68ae2f36cbc4de0cf4d4999.tar.xz discoin-e01a7939d3a3b231f68ae2f36cbc4de0cf4d4999.zip | |
Refactor -alertnotify code
Refactor common -alertnotify code into static CAlert::Notify method.
Diffstat (limited to 'src/alert.h')
| -rw-r--r-- | src/alert.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/alert.h b/src/alert.h index 5ecf94cea..ba3235858 100644 --- a/src/alert.h +++ b/src/alert.h @@ -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. |