Browse Source

Only include net.h when we have to

0.8
Jordan Lewis 14 years ago
parent
commit
40c2614ef4
  1. 1
      src/db.cpp
  2. 1
      src/headers.h
  3. 1
      src/init.cpp
  4. 1
      src/irc.cpp
  5. 1
      src/main.cpp
  6. 7
      src/main.h
  7. 1
      src/net.cpp
  8. 1
      src/rpc.cpp

1
src/db.cpp

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
#include "headers.h"
#include "db.h"
#include "net.h"
using namespace std;
using namespace boost;

1
src/headers.h

@ -118,7 +118,6 @@ @@ -118,7 +118,6 @@
#include "bignum.h"
#include "base58.h"
#include "script.h"
#include "net.h"
#include "main.h"
#ifdef GUI
#include "uibase.h"

1
src/init.cpp

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
#include "headers.h"
#include "db.h"
#include "rpc.h"
#include "net.h"
using namespace std;
using namespace boost;

1
src/irc.cpp

@ -4,6 +4,7 @@ @@ -4,6 +4,7 @@
#include "headers.h"
#include "irc.h"
#include "net.h"
using namespace std;
using namespace boost;

1
src/main.cpp

@ -3,6 +3,7 @@ @@ -3,6 +3,7 @@
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
#include "headers.h"
#include "db.h"
#include "net.h"
#include "cryptopp/sha.h"
using namespace std;

7
src/main.h

@ -24,6 +24,13 @@ class CBlockIndex; @@ -24,6 +24,13 @@ class CBlockIndex;
class CWalletTx;
class CKeyItem;
class CMessageHeader;
class CAddress;
class CInv;
class CRequestTracker;
class CNode;
class CBlockIndex;
static const unsigned int MAX_BLOCK_SIZE = 1000000;
static const unsigned int MAX_BLOCK_SIZE_GEN = MAX_BLOCK_SIZE/2;
static const int MAX_BLOCK_SIGOPS = MAX_BLOCK_SIZE/50;

1
src/net.cpp

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
#include "headers.h"
#include "irc.h"
#include "db.h"
#include "net.h"
#ifdef USE_UPNP
#include <miniupnpc/miniwget.h>

1
src/rpc.cpp

@ -5,6 +5,7 @@ @@ -5,6 +5,7 @@
#include "headers.h"
#include "cryptopp/sha.h"
#include "db.h"
#include "net.h"
#undef printf
#include <boost/asio.hpp>
#include <boost/iostreams/concepts.hpp>

Loading…
Cancel
Save