Replace addrman.h include with forward decl in net.h

Also, add missing addrman.h includes
This commit is contained in:
MarcoFalke 2021-11-30 14:49:43 +01:00
parent ffdf8ee43e
commit fa815f8473
No known key found for this signature in database
GPG key ID: CE2B75697E69A548
4 changed files with 6 additions and 3 deletions

View file

@ -10,6 +10,7 @@
#include <net.h> #include <net.h>
#include <addrdb.h> #include <addrdb.h>
#include <addrman.h>
#include <banman.h> #include <banman.h>
#include <clientversion.h> #include <clientversion.h>
#include <compat.h> #include <compat.h>

View file

@ -6,7 +6,6 @@
#ifndef BITCOIN_NET_H #ifndef BITCOIN_NET_H
#define BITCOIN_NET_H #define BITCOIN_NET_H
#include <addrman.h>
#include <chainparams.h> #include <chainparams.h>
#include <common/bloom.h> #include <common/bloom.h>
#include <compat.h> #include <compat.h>
@ -37,9 +36,10 @@
#include <thread> #include <thread>
#include <vector> #include <vector>
class CScheduler; class AddrMan;
class CNode;
class BanMan; class BanMan;
class CNode;
class CScheduler;
struct bilingual_str; struct bilingual_str;
/** Default for -whitelistrelay. */ /** Default for -whitelistrelay. */

View file

@ -4,6 +4,7 @@
#include <rpc/server.h> #include <rpc/server.h>
#include <addrman.h>
#include <banman.h> #include <banman.h>
#include <chainparams.h> #include <chainparams.h>
#include <clientversion.h> #include <clientversion.h>

View file

@ -2,6 +2,7 @@
// Distributed under the MIT software license, see the accompanying // Distributed under the MIT software license, see the accompanying
// file COPYING or http://www.opensource.org/licenses/mit-license.php. // file COPYING or http://www.opensource.org/licenses/mit-license.php.
#include <addrman.h>
#include <chainparams.h> #include <chainparams.h>
#include <chainparamsbase.h> #include <chainparamsbase.h>
#include <net.h> #include <net.h>