aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJordan Lewis <[email protected]>2011-05-14 16:20:30 -0500
committerJordan Lewis <[email protected]>2011-05-15 22:19:17 -0500
commit40c2614ef43a59ec0c8dc4338bbe27862243f2bb (patch)
treea5b25165f7ef92e5113a548601fd913654bdf49e /src
parentOnly included rpc.h when necessary (diff)
downloaddiscoin-40c2614ef43a59ec0c8dc4338bbe27862243f2bb.tar.xz
discoin-40c2614ef43a59ec0c8dc4338bbe27862243f2bb.zip
Only include net.h when we have to
Diffstat (limited to 'src')
-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 7152033c4..b3ce00a04 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 ee10c53ec..67165c464 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 b12c5eecf..149110f40 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 b24554637..5c9e0a960 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 dda366a1f..5c6cb678c 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 411777349..33c489273 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 7a1c137c7..60a91dffd 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 e826d0b44..9ab7710ad 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>