Make sure that new stake modifier meets fixed generation interval.
[novacoin.git] / src / txdb-leveldb.h
index 85e412f..ceee914 100644 (file)
@@ -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
@@ -199,6 +201,8 @@ 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();