Merge bitcoin/bitcoin#26254: iwyu: Add zmq source files

13afcc0cd4 iwyu: Add zmq source files (Hennadii Stepanov)

Pull request description:

ACKs for top commit:
  fanquake:
    ACK 13afcc0cd4

Tree-SHA512: 7af95e991fc2782aeba2edfef0a2f75f9c361058295586adb062087aa31c47cfcce2425aee9dd5153e18e018cf1f9272c9617c671b7262db55f241526c3fcb15
This commit is contained in:
MacroFake 2022-10-10 18:08:35 +02:00
commit 9ca39d69df
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
7 changed files with 44 additions and 4 deletions

View file

@ -68,6 +68,7 @@ if [ "${RUN_TIDY}" = "true" ]; then
" src/util/string.cpp"\
" src/util/syserror.cpp"\
" src/util/url.cpp"\
" src/zmq"\
" -p . ${MAKEJOBS} -- -Xiwyu --cxx17ns -Xiwyu --mapping_file=${BASE_BUILD_DIR}/bitcoin-$HOST/contrib/devtools/iwyu/bitcoin.core.imp"
fi

View file

@ -5,7 +5,7 @@
#ifndef BITCOIN_ZMQ_ZMQABSTRACTNOTIFIER_H
#define BITCOIN_ZMQ_ZMQABSTRACTNOTIFIER_H
#include <cstdint>
#include <memory>
#include <string>

View file

@ -3,13 +3,23 @@
// file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <zmq/zmqnotificationinterface.h>
#include <logging.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <util/system.h>
#include <validationinterface.h>
#include <zmq/zmqabstractnotifier.h>
#include <zmq/zmqpublishnotifier.h>
#include <zmq/zmqutil.h>
#include <zmq.h>
#include <primitives/block.h>
#include <util/system.h>
#include <cassert>
#include <map>
#include <string>
#include <utility>
#include <vector>
CZMQNotificationInterface::CZMQNotificationInterface() : pcontext(nullptr)
{

View file

@ -5,10 +5,14 @@
#ifndef BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
#define BITCOIN_ZMQ_ZMQNOTIFICATIONINTERFACE_H
#include <primitives/transaction.h>
#include <validationinterface.h>
#include <cstdint>
#include <list>
#include <memory>
class CBlock;
class CBlockIndex;
class CZMQAbstractNotifier;

View file

@ -6,21 +6,37 @@
#include <chain.h>
#include <chainparams.h>
#include <crypto/common.h>
#include <logging.h>
#include <netaddress.h>
#include <netbase.h>
#include <node/blockstorage.h>
#include <primitives/block.h>
#include <primitives/transaction.h>
#include <rpc/server.h>
#include <serialize.h>
#include <streams.h>
#include <util/system.h>
#include <sync.h>
#include <uint256.h>
#include <version.h>
#include <zmq/zmqutil.h>
#include <zmq.h>
#include <cassert>
#include <cstdarg>
#include <cstddef>
#include <cstdint>
#include <cstring>
#include <map>
#include <optional>
#include <string>
#include <utility>
#include <vector>
namespace Consensus {
struct Params;
}
using node::ReadBlockFromDisk;

View file

@ -7,7 +7,11 @@
#include <zmq/zmqabstractnotifier.h>
#include <cstddef>
#include <cstdint>
class CBlockIndex;
class CTransaction;
class CZMQAbstractPublishNotifier : public CZMQAbstractNotifier
{

View file

@ -11,6 +11,11 @@
#include <univalue.h>
#include <list>
#include <string>
class JSONRPCRequest;
namespace {
static RPCHelpMan getzmqnotifications()