aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Lewis <jordanthelewis@gmail.com>2011-05-14 16:20:30 -0500
committerJordan Lewis <jordanthelewis@gmail.com>2011-05-15 22:19:17 -0500
commit40c2614ef43a59ec0c8dc4338bbe27862243f2bb (patch)
treea5b25165f7ef92e5113a548601fd913654bdf49e
parented0c143242d734365b0e3d09b0e52e07819ffcdd (diff)
downloadbitcoin-40c2614ef43a59ec0c8dc4338bbe27862243f2bb.tar.xz
Only include net.h when we have to
-rw-r--r--src/db.cpp1
-rw-r--r--src/headers.h1
-rw-r--r--src/init.cpp1
-rw-r--r--src/irc.cpp1
-rw-r--r--src/main.cpp1
-rw-r--r--src/main.h7
-rw-r--r--src/net.cpp1
-rw-r--r--src/rpc.cpp1
8 files changed, 13 insertions, 1 deletions
diff --git a/src/db.cpp b/src/db.cpp
index 7152033c49..b3ce00a04f 100644
--- a/src/db.cpp
+++ b/src/db.cpp
@@ -4,6 +4,7 @@
#include "headers.h"
#include "db.h"
+#include "net.h"
using namespace std;
using namespace boost;
diff --git a/src/headers.h b/src/headers.h
index ee10c53eca..67165c464e 100644
--- a/src/headers.h
+++ b/src/headers.h
@@ -118,7 +118,6 @@
#include "bignum.h"
#include "base58.h"
#include "script.h"
-#include "net.h"
#include "main.h"
#ifdef GUI
#include "uibase.h"
diff --git a/src/init.cpp b/src/init.cpp
index b12c5eecf8..149110f409 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -4,6 +4,7 @@
#include "headers.h"
#include "db.h"
#include "rpc.h"
+#include "net.h"
using namespace std;
using namespace boost;
diff --git a/src/irc.cpp b/src/irc.cpp
index b245546378..5c9e0a9602 100644
--- a/src/irc.cpp
+++ b/src/irc.cpp
@@ -4,6 +4,7 @@
#include "headers.h"
#include "irc.h"
+#include "net.h"
using namespace std;
using namespace boost;
diff --git a/src/main.cpp b/src/main.cpp
index dda366a1f4..5c6cb678c0 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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;
diff --git a/src/main.h b/src/main.h
index 411777349a..33c4892732 100644
--- a/src/main.h
+++ b/src/main.h
@@ -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;
diff --git a/src/net.cpp b/src/net.cpp
index 7a1c137c75..60a91dffda 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -5,6 +5,7 @@
#include "headers.h"
#include "irc.h"
#include "db.h"
+#include "net.h"
#ifdef USE_UPNP
#include <miniupnpc/miniwget.h>
diff --git a/src/rpc.cpp b/src/rpc.cpp
index e826d0b447..9ab7710ad9 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -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>