aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJordan Lewis <jordanthelewis@gmail.com>2011-05-14 15:57:34 -0500
committerJordan Lewis <jordanthelewis@gmail.com>2011-05-15 22:19:16 -0500
commit1512d5ce64b9a53260f5aa695bc79a0e48d6294f (patch)
treede89dbfb1b432b073150656aa6d4c88ec07aec0a /src
parentf23f9a03c86f789ab41d75b91f75393e3156ec39 (diff)
Only include db.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/main.cpp1
-rw-r--r--src/main.h3
-rw-r--r--src/net.cpp1
-rw-r--r--src/rpc.cpp1
7 files changed, 8 insertions, 1 deletions
diff --git a/src/db.cpp b/src/db.cpp
index 52c0f5b4c3..7152033c49 100644
--- a/src/db.cpp
+++ b/src/db.cpp
@@ -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;
diff --git a/src/headers.h b/src/headers.h
index 7cc6d3b906..2d309f959b 100644
--- a/src/headers.h
+++ b/src/headers.h
@@ -118,7 +118,6 @@
#include "bignum.h"
#include "base58.h"
#include "script.h"
-#include "db.h"
#include "net.h"
#include "main.h"
#include "rpc.h"
diff --git a/src/init.cpp b/src/init.cpp
index 431c533a83..14f4904f5b 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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;
diff --git a/src/main.cpp b/src/main.cpp
index 68b6b4ee1b..dda366a1f4 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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;
diff --git a/src/main.h b/src/main.h
index 92b73fe5ad..411777349a 100644
--- a/src/main.h
+++ b/src/main.h
@@ -77,6 +77,9 @@ extern int fUseUPnP;
+class CReserveKey;
+class CTxDB;
+class CTxIndex;
bool CheckDiskSpace(uint64 nAdditionalBytes=0);
diff --git a/src/net.cpp b/src/net.cpp
index 3339b7718b..7a1c137c75 100644
--- a/src/net.cpp
+++ b/src/net.cpp
@@ -4,6 +4,7 @@
#include "headers.h"
#include "irc.h"
+#include "db.h"
#ifdef USE_UPNP
#include <miniupnpc/miniwget.h>
diff --git a/src/rpc.cpp b/src/rpc.cpp
index 9efcbbb15a..e826d0b447 100644
--- a/src/rpc.cpp
+++ b/src/rpc.cpp
@@ -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>