Only include net.h when we have to
authorJordan Lewis <jordanthelewis@gmail.com>
Sat, 14 May 2011 21:20:30 +0000 (16:20 -0500)
committerJordan Lewis <jordanthelewis@gmail.com>
Mon, 16 May 2011 03:19:17 +0000 (22:19 -0500)
src/db.cpp
src/headers.h
src/init.cpp
src/irc.cpp
src/main.cpp
src/main.h
src/net.cpp
src/rpc.cpp

index 7152033..b3ce00a 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "headers.h"
 #include "db.h"
+#include "net.h"
 
 using namespace std;
 using namespace boost;
index ee10c53..67165c4 100644 (file)
 #include "bignum.h"
 #include "base58.h"
 #include "script.h"
-#include "net.h"
 #include "main.h"
 #ifdef GUI
 #include "uibase.h"
index b12c5ee..149110f 100644 (file)
@@ -4,6 +4,7 @@
 #include "headers.h"
 #include "db.h"
 #include "rpc.h"
+#include "net.h"
 
 using namespace std;
 using namespace boost;
index b245546..5c9e0a9 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "headers.h"
 #include "irc.h"
+#include "net.h"
 
 using namespace std;
 using namespace boost;
index dda366a..5c6cb67 100644 (file)
@@ -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;
index 4117773..33c4892 100644 (file)
@@ -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;
index 7a1c137..60a91df 100644 (file)
@@ -5,6 +5,7 @@
 #include "headers.h"
 #include "irc.h"
 #include "db.h"
+#include "net.h"
 
 #ifdef USE_UPNP
 #include <miniupnpc/miniwget.h>
index e826d0b..9ab7710 100644 (file)
@@ -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>