Update CMakeLists.txt - play with openssl
[novacoin.git] / src / txdb-leveldb.h
index ceee914..8dbd952 100644 (file)
@@ -6,15 +6,21 @@
 #ifndef BITCOIN_LEVELDB_H
 #define BITCOIN_LEVELDB_H
 
-#include "main.h"
-
-#include <map>
-#include <string>
-#include <vector>
+#include "serialize.h"
+#include "streams.h"
+#include "version.h"
 
 #include <leveldb/db.h>
 #include <leveldb/write_batch.h>
 
+class CBigNum;
+class CDiskBlockIndex;
+class COutPoint;
+class CTxIndex;
+class CTransaction;
+class uint256;
+class CDiskTxPos;
+
 // Class that provides access to a LevelDB. Note that this class is frequently
 // instantiated on the stack and then destroyed again, so instantiation has to
 // be very cheap. Unfortunately that means, a CTxDB instance is actually just a
@@ -91,7 +97,7 @@ protected:
                                 SER_DISK, CLIENT_VERSION);
             ssValue >> value;
         }
-        catch (std::exception &e) {
+        catch (const std::exception&) {
             return false;
         }
         return true;
@@ -204,9 +210,7 @@ public:
     bool ReadModifierUpgradeTime(unsigned int& nUpgradeTime);
     bool WriteModifierUpgradeTime(const unsigned int& nUpgradeTime);
     bool LoadBlockIndex();
-private:
-    bool LoadBlockIndexGuts();
 };
 
 
-#endif // BITCOIN_DB_H
+#endif // BITCOIN_LEVELDB_H