Mercurial > hg > bitcoin
changeset 605:1ae81ad9b0e5 draft
Only include db.h when we have to.
author | Jordan Lewis <jordanthelewis@gmail.com> |
---|---|
date | Sat, 14 May 2011 15:57:34 -0500 |
parents | cc067211b6da |
children | e1262339c9e5 |
files | src/db.cpp src/headers.h src/init.cpp src/main.cpp src/main.h src/net.cpp src/rpc.cpp |
diffstat | 7 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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;
--- 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"
--- 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;
--- 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;
--- a/src/main.h +++ b/src/main.h @@ -77,6 +77,9 @@ +class CReserveKey; +class CTxDB; +class CTxIndex; bool CheckDiskSpace(uint64 nAdditionalBytes=0);