diff options
author | Daniel Kraft <d@domob.eu> | 2018-07-17 12:51:23 +0200 |
---|---|---|
committer | Daniel Kraft <d@domob.eu> | 2020-09-07 10:56:22 +0200 |
commit | a3ffb6ebebd753cec294c91cef7c603a30cf217e (patch) | |
tree | 2c9924ca5ac65d2c742227eea19163dc4d73b6a7 /src/zmq/zmqabstractnotifier.h | |
parent | 7f2ad1b9acef4ccc1b3e1a9f551416235d95cbfd (diff) | |
download | bitcoin-a3ffb6ebebd753cec294c91cef7c603a30cf217e.tar.xz |
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/zmqabstractnotifier.h')
-rw-r--r-- | src/zmq/zmqabstractnotifier.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/zmq/zmqabstractnotifier.h b/src/zmq/zmqabstractnotifier.h index 8377a26d3a..34d7e5ef03 100644 --- a/src/zmq/zmqabstractnotifier.h +++ b/src/zmq/zmqabstractnotifier.h @@ -5,13 +5,13 @@ #ifndef BITCOIN_ZMQ_ZMQABSTRACTNOTIFIER_H #define BITCOIN_ZMQ_ZMQABSTRACTNOTIFIER_H -#include <zmq/zmqconfig.h> - #include <util/memory.h> #include <memory> +#include <string> class CBlockIndex; +class CTransaction; class CZMQAbstractNotifier; using CZMQNotifierFactory = std::unique_ptr<CZMQAbstractNotifier> (*)(); |