aboutsummaryrefslogtreecommitdiff
path: root/src/zmq/zmqpublishnotifier.cpp
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2020-09-01 09:40:13 +0200
committerDaniel Kraft <d@domob.eu>2020-09-07 10:55:06 +0200
commite15b1cfc310df739b92bd281112dbeb31d3bb30a (patch)
tree5452fc4cf3f80b0463c395fb8099e957deaa555c /src/zmq/zmqpublishnotifier.cpp
parent78cb45d72251e85db07e8500bbdd2e9460b132b2 (diff)
Various cleanups in zmqnotificationinterface.
This is a pure refactoring of zmqnotificationinterface to make the code easier to read and maintain. It replaces explicit iterators with C++11 for-each loops where appropriate and uses std::unique_ptr to make memory ownership more explicit.
Diffstat (limited to 'src/zmq/zmqpublishnotifier.cpp')
-rw-r--r--src/zmq/zmqpublishnotifier.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/zmq/zmqpublishnotifier.cpp b/src/zmq/zmqpublishnotifier.cpp
index e2431cbbb7..aaef12ebcf 100644
--- a/src/zmq/zmqpublishnotifier.cpp
+++ b/src/zmq/zmqpublishnotifier.cpp
@@ -10,6 +10,14 @@
#include <util/system.h>
#include <rpc/server.h>
+#include <zmq.h>
+
+#include <cstdarg>
+#include <cstddef>
+#include <map>
+#include <string>
+#include <utility>
+
static std::multimap<std::string, CZMQAbstractPublishNotifier*> mapPublishNotifiers;
static const char *MSG_HASHBLOCK = "hashblock";