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

index 52c0f5b..7152033 100644 (file)
@@ -3,6 +3,7 @@
 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
 
 #include "headers.h"
+#include "db.h"
 
 using namespace std;
 using namespace boost;
index 7cc6d3b..2d309f9 100644 (file)
 #include "bignum.h"
 #include "base58.h"
 #include "script.h"
-#include "db.h"
 #include "net.h"
 #include "main.h"
 #include "rpc.h"
index 431c533..14f4904 100644 (file)
@@ -2,6 +2,7 @@
 // Distributed under the MIT/X11 software license, see the accompanying
 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
 #include "headers.h"
+#include "db.h"
 
 using namespace std;
 using namespace boost;
index 68b6b4e..dda366a 100644 (file)
@@ -2,6 +2,7 @@
 // Distributed under the MIT/X11 software license, see the accompanying
 // file license.txt or http://www.opensource.org/licenses/mit-license.php.
 #include "headers.h"
+#include "db.h"
 #include "cryptopp/sha.h"
 
 using namespace std;
index 92b73fe..4117773 100644 (file)
@@ -77,6 +77,9 @@ extern int fUseUPnP;
 
 
 
+class CReserveKey;
+class CTxDB;
+class CTxIndex;
 
 
 bool CheckDiskSpace(uint64 nAdditionalBytes=0);
index 3339b77..7a1c137 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "headers.h"
 #include "irc.h"
+#include "db.h"
 
 #ifdef USE_UPNP
 #include <miniupnpc/miniwget.h>
index 9efcbbb..e826d0b 100644 (file)
@@ -4,6 +4,7 @@
 
 #include "headers.h"
 #include "cryptopp/sha.h"
+#include "db.h"
 #undef printf
 #include <boost/asio.hpp>
 #include <boost/iostreams/concepts.hpp>