diff options
| author | Daniel Kraft <[email protected]> | 2018-07-17 12:51:23 +0200 |
|---|---|---|
| committer | Daniel Kraft <[email protected]> | 2020-09-07 10:56:22 +0200 |
| commit | a3ffb6ebebd753cec294c91cef7c603a30cf217e (patch) | |
| tree | 2c9924ca5ac65d2c742227eea19163dc4d73b6a7 /src/zmq/zmqpublishnotifier.cpp | |
| parent | Use std::unique_ptr for CZMQNotifierFactory. (diff) | |
| download | discoin-a3ffb6ebebd753cec294c91cef7c603a30cf217e.tar.xz discoin-a3ffb6ebebd753cec294c91cef7c603a30cf217e.zip | |
Replace zmqconfig.h by a simple zmqutil.
zmqconfig.h is currently not really needed anywhere, except that
it declares zmqError (which is then defined in
zmqnotificationinterface.cpp). Note in particular that there is
no need to conditionally include zmq.h only if ZMQ is enabled, because
the place in the core code where the ZMQ library itself is included
(init.cpp) is conditional already on that.
This commit removes zmqconfig.h and replaces it by a much simpler
zmqutil.h library for zmqError. The definition of the function is
moved to the matching (newly created) zmqutil.cpp.
Diffstat (limited to 'src/zmq/zmqpublishnotifier.cpp')
| -rw-r--r-- | src/zmq/zmqpublishnotifier.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/zmq/zmqpublishnotifier.cpp b/src/zmq/zmqpublishnotifier.cpp index aaef12ebc..2484fd698 100644 --- a/src/zmq/zmqpublishnotifier.cpp +++ b/src/zmq/zmqpublishnotifier.cpp @@ -2,13 +2,15 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include <zmq/zmqpublishnotifier.h> + #include <chain.h> #include <chainparams.h> +#include <rpc/server.h> #include <streams.h> -#include <zmq/zmqpublishnotifier.h> -#include <validation.h> #include <util/system.h> -#include <rpc/server.h> +#include <validation.h> +#include <zmq/zmqutil.h> #include <zmq.h> |