Skip to content

Commit

Permalink
net, node/node: cleanup includes
Browse files Browse the repository at this point in the history
  • Loading branch information
ajtowns committed Oct 19, 2023
1 parent e0cf223 commit e440506
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 45 deletions.
10 changes: 0 additions & 10 deletions src/net.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,20 @@
#ifndef BITCOIN_NET_H
#define BITCOIN_NET_H

#include <bip324.h>
#include <chainparams.h>
#include <common/bloom.h>
#include <compat/compat.h>
#include <consensus/amount.h>
#include <crypto/siphash.h>
#include <hash.h>
#include <i2p.h>
#include <kernel/messagestartchars.h>
#include <net_permissions.h>
#include <netaddress.h>
#include <netbase.h>
#include <netgroup.h>
#include <node/connection_types.h>
#include <node/node.h> // IWYU pragma: export
#include <policy/feerate.h>
#include <protocol.h>
#include <random.h>
#include <span.h>
#include <streams.h>
#include <sync.h>
#include <uint256.h>
#include <util/check.h>
#include <util/sock.h>
#include <util/threadinterrupt.h>

Expand All @@ -48,7 +39,6 @@

class AddrMan;
class BanMan;
class CChainParams;
class CScheduler;
struct bilingual_str;

Expand Down
31 changes: 11 additions & 20 deletions src/node/node.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,26 @@

#include <node/node.h>

#include <addrdb.h>
#include <addrman.h>
#include <banman.h>
#include <clientversion.h>
#include <common/args.h>
#include <compat/compat.h>
#include <consensus/consensus.h>
#include <crypto/sha256.h>
#include <chainparams.h>
#include <hash.h>
#include <i2p.h>
#include <logging.h>
#include <memusage.h>
#include <net_permissions.h>
#include <netaddress.h>
#include <netbase.h>
#include <node/connection_types.h>
#include <node/eviction.h>
#include <node/interface_ui.h>
#include <protocol.h>
#include <pubkey.h>
#include <random.h>
#include <scheduler.h>
#include <util/fs.h>
#include <serialize.h>
#include <span.h>
#include <streams.h>
#include <sync.h>
#include <tinyformat.h>
#include <util/check.h>
#include <util/sock.h>
#include <util/strencodings.h>
#include <util/thread.h>
#include <util/threadinterrupt.h>
#include <util/trace.h>
#include <util/translation.h>
#include <util/time.h>
#include <util/vector.h>

#ifdef WIN32
Expand All @@ -48,12 +42,9 @@
#include <algorithm>
#include <array>
#include <cstdint>
#include <functional>
#include <optional>
#include <unordered_map>

#include <math.h>

const std::string NET_MESSAGE_TYPE_OTHER = "*other*";

size_t CSerializedNetMsg::GetMemoryUsage() const noexcept
Expand Down
15 changes: 0 additions & 15 deletions src/node/node.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,41 +13,26 @@
*/

#include <bip324.h>
#include <chainparams.h>
#include <common/bloom.h>
#include <compat/compat.h>
#include <crypto/siphash.h>
#include <hash.h>
#include <i2p.h>
#include <kernel/messagestartchars.h>
#include <net_permissions.h>
#include <netaddress.h>
#include <netbase.h>
#include <netgroup.h>
#include <node/connection_types.h>
#include <policy/feerate.h>
#include <protocol.h>
#include <random.h>
#include <span.h>
#include <streams.h>
#include <sync.h>
#include <uint256.h>
#include <util/check.h>
#include <util/sock.h>
#include <util/threadinterrupt.h>

#include <atomic>
#include <condition_variable>
#include <cstdint>
#include <deque>
#include <functional>
#include <list>
#include <map>
#include <memory>
#include <optional>
#include <queue>
#include <thread>
#include <unordered_set>
#include <vector>

/** Maximum length of incoming protocol messages (no message over 4 MB is currently acceptable). */
Expand Down

0 comments on commit e440506

Please sign in to comment.