aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAmiti Uttarwar <amiti@uttarwar.org>2021-09-10 16:37:41 -0600
committerAmiti Uttarwar <amiti@uttarwar.org>2021-09-28 22:21:06 -0400
commit3c263d3f63c3598954ee2b65a0e721e3c22e52f8 (patch)
tree202a786aa08ee9854e89b744c74c44368f0b17f8 /src
parent29727c2aa1233f7c5b91a17884c405e0aef10c6e (diff)
[includes] Fix up included files
Diffstat (limited to 'src')
-rw-r--r--src/addrman.cpp9
-rw-r--r--src/addrman.h8
-rw-r--r--src/addrman_impl.h15
3 files changed, 23 insertions, 9 deletions
diff --git a/src/addrman.cpp b/src/addrman.cpp
index 3ccd3751bc..ef1538b6e9 100644
--- a/src/addrman.cpp
+++ b/src/addrman.cpp
@@ -6,18 +6,19 @@
#include <addrman.h>
#include <addrman_impl.h>
-#include <clientversion.h>
#include <hash.h>
-#include <logging.h>
#include <netaddress.h>
+#include <protocol.h>
+#include <random.h>
#include <serialize.h>
#include <streams.h>
+#include <timedata.h>
+#include <tinyformat.h>
+#include <uint256.h>
#include <util/check.h>
#include <cmath>
#include <optional>
-#include <unordered_map>
-#include <unordered_set>
/** Over how many buckets entries with tried addresses from a single group (/16 for IPv4) are spread */
static constexpr uint32_t ADDRMAN_TRIED_BUCKETS_PER_GROUP{8};
diff --git a/src/addrman.h b/src/addrman.h
index 84c2bf2201..b0944bcfd5 100644
--- a/src/addrman.h
+++ b/src/addrman.h
@@ -6,17 +6,15 @@
#ifndef BITCOIN_ADDRMAN_H
#define BITCOIN_ADDRMAN_H
-#include <fs.h>
-#include <logging.h>
#include <netaddress.h>
#include <protocol.h>
-#include <sync.h>
+#include <streams.h>
#include <timedata.h>
#include <cstdint>
+#include <memory>
#include <optional>
-#include <set>
-#include <unordered_map>
+#include <utility>
#include <vector>
class AddrManImpl;
diff --git a/src/addrman_impl.h b/src/addrman_impl.h
index 160efb2c0e..c37c7b4779 100644
--- a/src/addrman_impl.h
+++ b/src/addrman_impl.h
@@ -5,6 +5,21 @@
#ifndef BITCOIN_ADDRMAN_IMPL_H
#define BITCOIN_ADDRMAN_IMPL_H
+#include <logging.h>
+#include <netaddress.h>
+#include <protocol.h>
+#include <serialize.h>
+#include <sync.h>
+#include <uint256.h>
+
+#include <cstdint>
+#include <optional>
+#include <set>
+#include <unordered_map>
+#include <unordered_set>
+#include <utility>
+#include <vector>
+
/** Total number of buckets for tried addresses */
static constexpr int32_t ADDRMAN_TRIED_BUCKET_COUNT_LOG2{8};
static constexpr int ADDRMAN_TRIED_BUCKET_COUNT{1 << ADDRMAN_TRIED_BUCKET_COUNT_LOG2};