X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Ftxdb-leveldb.h;h=07c708825159759952c3281a389f2ddd1dc8b993;hb=HEAD;hp=ceee914ba0c96152d1abc3a066687c621a275de5;hpb=1ca032e9c756d7605db51cd6cfce418ab5113e81;p=novacoin.git diff --git a/src/txdb-leveldb.h b/src/txdb-leveldb.h index ceee914..8dbd952 100644 --- a/src/txdb-leveldb.h +++ b/src/txdb-leveldb.h @@ -6,15 +6,21 @@ #ifndef BITCOIN_LEVELDB_H #define BITCOIN_LEVELDB_H -#include "main.h" - -#include -#include -#include +#include "serialize.h" +#include "streams.h" +#include "version.h" #include #include +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