X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Ftxdb-leveldb.h;h=07c708825159759952c3281a389f2ddd1dc8b993;hb=510a23a2c838245cd4681ed0b4fbce48e8ebf506;hp=85e412f5359771b279cb8b6adb0fd7269beced42;hpb=050edc2860c508b16f700bf069827310d5feb48c;p=novacoin.git diff --git a/src/txdb-leveldb.h b/src/txdb-leveldb.h index 85e412f..07c7088 100644 --- a/src/txdb-leveldb.h +++ b/src/txdb-leveldb.h @@ -42,11 +42,13 @@ public: private: leveldb::DB *pdb; // Points to the global instance. + // A batch stores up writes and deletes for atomic application. When this // field is non-NULL, writes/deletes go there instead of directly to disk. leveldb::WriteBatch *activeBatch; leveldb::Options options; bool fReadOnly; + int nVersion; protected: // Returns true and sets (value,false) if activeBatch contains the given key @@ -89,7 +91,7 @@ protected: SER_DISK, CLIENT_VERSION); ssValue >> value; } - catch (std::exception &e) { + catch (const std::exception&) { return false; } return true; @@ -199,9 +201,9 @@ public: bool WriteSyncCheckpoint(uint256 hashCheckpoint); bool ReadCheckpointPubKey(std::string& strPubKey); bool WriteCheckpointPubKey(const std::string& strPubKey); + bool ReadModifierUpgradeTime(unsigned int& nUpgradeTime); + bool WriteModifierUpgradeTime(const unsigned int& nUpgradeTime); bool LoadBlockIndex(); -private: - bool LoadBlockIndexGuts(); };