Browse Source

net: narrow include scope after moving to netaddress

Net functionality is no longer needed for CAddress/CAddrman/etc. now that
CNetAddr/CService/CSubNet are dumb storage classes.
0.14
Cory Fields 9 years ago
parent
commit
21ba407a73
  1. 2
      src/addrman.h
  2. 1
      src/init.cpp
  3. 1
      src/net.cpp
  4. 2
      src/net.h
  5. 2
      src/protocol.h
  6. 1
      src/qt/optionsmodel.cpp
  7. 1
      src/qt/rpcconsole.cpp
  8. 1
      src/test/addrman_tests.cpp
  9. 1
      src/test/net_tests.cpp
  10. 2
      src/timedata.cpp
  11. 1
      src/torcontrol.cpp
  12. 1
      src/wallet/rpcwallet.cpp

2
src/addrman.h

@ -6,7 +6,7 @@
#ifndef BITCOIN_ADDRMAN_H #ifndef BITCOIN_ADDRMAN_H
#define BITCOIN_ADDRMAN_H #define BITCOIN_ADDRMAN_H
#include "netbase.h" #include "netaddress.h"
#include "protocol.h" #include "protocol.h"
#include "random.h" #include "random.h"
#include "sync.h" #include "sync.h"

1
src/init.cpp

@ -21,6 +21,7 @@
#include "key.h" #include "key.h"
#include "main.h" #include "main.h"
#include "miner.h" #include "miner.h"
#include "netbase.h"
#include "net.h" #include "net.h"
#include "policy/policy.h" #include "policy/policy.h"
#include "rpc/server.h" #include "rpc/server.h"

1
src/net.cpp

@ -17,6 +17,7 @@
#include "crypto/sha256.h" #include "crypto/sha256.h"
#include "hash.h" #include "hash.h"
#include "primitives/transaction.h" #include "primitives/transaction.h"
#include "netbase.h"
#include "scheduler.h" #include "scheduler.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "utilstrencodings.h" #include "utilstrencodings.h"

2
src/net.h

@ -10,7 +10,7 @@
#include "bloom.h" #include "bloom.h"
#include "compat.h" #include "compat.h"
#include "limitedmap.h" #include "limitedmap.h"
#include "netbase.h" #include "netaddress.h"
#include "protocol.h" #include "protocol.h"
#include "random.h" #include "random.h"
#include "streams.h" #include "streams.h"

2
src/protocol.h

@ -10,7 +10,7 @@
#ifndef BITCOIN_PROTOCOL_H #ifndef BITCOIN_PROTOCOL_H
#define BITCOIN_PROTOCOL_H #define BITCOIN_PROTOCOL_H
#include "netbase.h" #include "netaddress.h"
#include "serialize.h" #include "serialize.h"
#include "uint256.h" #include "uint256.h"
#include "version.h" #include "version.h"

1
src/qt/optionsmodel.cpp

@ -15,6 +15,7 @@
#include "init.h" #include "init.h"
#include "main.h" // For DEFAULT_SCRIPTCHECK_THREADS #include "main.h" // For DEFAULT_SCRIPTCHECK_THREADS
#include "net.h" #include "net.h"
#include "netbase.h"
#include "txdb.h" // for -dbcache defaults #include "txdb.h" // for -dbcache defaults
#ifdef ENABLE_WALLET #ifdef ENABLE_WALLET

1
src/qt/rpcconsole.cpp

@ -16,6 +16,7 @@
#include "bantablemodel.h" #include "bantablemodel.h"
#include "chainparams.h" #include "chainparams.h"
#include "netbase.h"
#include "rpc/server.h" #include "rpc/server.h"
#include "rpc/client.h" #include "rpc/client.h"
#include "util.h" #include "util.h"

1
src/test/addrman_tests.cpp

@ -7,6 +7,7 @@
#include <boost/test/unit_test.hpp> #include <boost/test/unit_test.hpp>
#include "hash.h" #include "hash.h"
#include "netbase.h"
#include "random.h" #include "random.h"
using namespace std; using namespace std;

1
src/test/net_tests.cpp

@ -9,6 +9,7 @@
#include "serialize.h" #include "serialize.h"
#include "streams.h" #include "streams.h"
#include "net.h" #include "net.h"
#include "netbase.h"
#include "chainparams.h" #include "chainparams.h"
using namespace std; using namespace std;

2
src/timedata.cpp

@ -8,7 +8,7 @@
#include "timedata.h" #include "timedata.h"
#include "netbase.h" #include "netaddress.h"
#include "sync.h" #include "sync.h"
#include "ui_interface.h" #include "ui_interface.h"
#include "util.h" #include "util.h"

1
src/torcontrol.cpp

@ -4,6 +4,7 @@
#include "torcontrol.h" #include "torcontrol.h"
#include "utilstrencodings.h" #include "utilstrencodings.h"
#include "netbase.h"
#include "net.h" #include "net.h"
#include "util.h" #include "util.h"
#include "crypto/hmac_sha256.h" #include "crypto/hmac_sha256.h"

1
src/wallet/rpcwallet.cpp

@ -10,7 +10,6 @@
#include "init.h" #include "init.h"
#include "main.h" #include "main.h"
#include "net.h" #include "net.h"
#include "netbase.h"
#include "policy/rbf.h" #include "policy/rbf.h"
#include "rpc/server.h" #include "rpc/server.h"
#include "timedata.h" #include "timedata.h"

Loading…
Cancel
Save