From e5214a2ca22cecf123bcff1ab441ed0415d08a6f Mon Sep 17 00:00:00 2001 From: Lee Clagett Date: Mon, 16 Mar 2020 23:59:26 +0000 Subject: Adding ZMQ/Pub support for txpool_add and chain_main events --- src/common/notify.cpp | 2 +- src/common/notify.h | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/common') diff --git a/src/common/notify.cpp b/src/common/notify.cpp index e2df5096d..f31100214 100644 --- a/src/common/notify.cpp +++ b/src/common/notify.cpp @@ -62,7 +62,7 @@ static void replace(std::vector &v, const char *tag, const char *s) boost::replace_all(str, tag, s); } -int Notify::notify(const char *tag, const char *s, ...) +int Notify::notify(const char *tag, const char *s, ...) const { std::vector margs = args; diff --git a/src/common/notify.h b/src/common/notify.h index f813e8def..65d4e1072 100644 --- a/src/common/notify.h +++ b/src/common/notify.h @@ -38,8 +38,12 @@ class Notify { public: Notify(const char *spec); + Notify(const Notify&) = default; + Notify(Notify&&) = default; + Notify& operator=(const Notify&) = default; + Notify& operator=(Notify&&) = default; - int notify(const char *tag, const char *s, ...); + int notify(const char *tag, const char *s, ...) const; private: std::string filename; @@ -47,3 +51,4 @@ private: }; } + -- cgit v1.2.3