From fa815f8473c56df66302340c5961d18226a60e6f Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 30 Nov 2021 14:49:43 +0100 Subject: [PATCH] Replace addrman.h include with forward decl in net.h Also, add missing addrman.h includes --- src/net.cpp | 1 + src/net.h | 6 +++--- src/rpc/net.cpp | 1 + src/test/fuzz/connman.cpp | 1 + 4 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/net.cpp b/src/net.cpp index db496c2185..b112b8d233 100644 --- a/src/net.cpp +++ b/src/net.cpp @@ -10,6 +10,7 @@ #include #include +#include #include #include #include diff --git a/src/net.h b/src/net.h index dd5cc66a04..e9baa57a9b 100644 --- a/src/net.h +++ b/src/net.h @@ -6,7 +6,6 @@ #ifndef BITCOIN_NET_H #define BITCOIN_NET_H -#include #include #include #include @@ -37,9 +36,10 @@ #include #include -class CScheduler; -class CNode; +class AddrMan; class BanMan; +class CNode; +class CScheduler; struct bilingual_str; /** Default for -whitelistrelay. */ diff --git a/src/rpc/net.cpp b/src/rpc/net.cpp index e33f1ce4a3..f4456bebc5 100644 --- a/src/rpc/net.cpp +++ b/src/rpc/net.cpp @@ -4,6 +4,7 @@ #include +#include #include #include #include diff --git a/src/test/fuzz/connman.cpp b/src/test/fuzz/connman.cpp index 9e4718e603..fc5cd664dc 100644 --- a/src/test/fuzz/connman.cpp +++ b/src/test/fuzz/connman.cpp @@ -2,6 +2,7 @@ // Distributed under the MIT software license, see the accompanying // file COPYING or http://www.opensource.org/licenses/mit-license.php. +#include #include #include #include