aboutsummaryrefslogtreecommitdiff
path: root/src/kernel
diff options
context:
space:
mode:
authorRyan Ofsky <ryan@ofsky.org>2022-06-08 12:28:41 -0400
committerRyan Ofsky <ryan@ofsky.org>2022-07-19 16:54:52 -0400
commit1e761a0169ebdbd3b5784af39fc2248b4546eeea (patch)
treef3dded08b411a00c505e5834e6b91034c6873d94 /src/kernel
parent6db6552377ad6316626b3ab8605a98f96f22c3d2 (diff)
downloadbitcoin-1e761a0169ebdbd3b5784af39fc2248b4546eeea.tar.xz
ci: Enable IWYU in src/kernel directory
Suggested https://github.com/bitcoin/bitcoin/pull/25308#discussion_r892505713
Diffstat (limited to 'src/kernel')
-rw-r--r--src/kernel/checks.cpp2
-rw-r--r--src/kernel/coinstats.cpp16
-rw-r--r--src/kernel/coinstats.h6
3 files changed, 22 insertions, 2 deletions
diff --git a/src/kernel/checks.cpp b/src/kernel/checks.cpp
index f476db60f5..4c303c172c 100644
--- a/src/kernel/checks.cpp
+++ b/src/kernel/checks.cpp
@@ -9,6 +9,8 @@
#include <util/time.h>
#include <util/translation.h>
+#include <memory>
+
namespace kernel {
std::optional<bilingual_str> SanityChecks(const Context&)
diff --git a/src/kernel/coinstats.cpp b/src/kernel/coinstats.cpp
index f380871627..8d948bfc1d 100644
--- a/src/kernel/coinstats.cpp
+++ b/src/kernel/coinstats.cpp
@@ -4,16 +4,32 @@
#include <kernel/coinstats.h>
+#include <chain.h>
#include <coins.h>
#include <crypto/muhash.h>
#include <hash.h>
+#include <node/blockstorage.h>
+#include <primitives/transaction.h>
+#include <script/script.h>
#include <serialize.h>
+#include <span.h>
+#include <streams.h>
+#include <sync.h>
+#include <tinyformat.h>
#include <uint256.h>
+#include <util/check.h>
#include <util/overflow.h>
#include <util/system.h>
#include <validation.h>
+#include <version.h>
+#include <cassert>
+#include <iosfwd>
+#include <iterator>
#include <map>
+#include <memory>
+#include <string>
+#include <utility>
namespace kernel {
diff --git a/src/kernel/coinstats.h b/src/kernel/coinstats.h
index a15957233f..b7c1328e93 100644
--- a/src/kernel/coinstats.h
+++ b/src/kernel/coinstats.h
@@ -5,16 +5,18 @@
#ifndef BITCOIN_KERNEL_COINSTATS_H
#define BITCOIN_KERNEL_COINSTATS_H
-#include <chain.h>
-#include <coins.h>
#include <consensus/amount.h>
#include <streams.h>
#include <uint256.h>
#include <cstdint>
#include <functional>
+#include <optional>
class CCoinsView;
+class Coin;
+class COutPoint;
+class CScript;
namespace node {
class BlockManager;
} // namespace node