Update CMakeLists.txt - play with openssl
[novacoin.git] / src / kernelrecord.h
index c18c6cf..a583b03 100644 (file)
@@ -10,20 +10,18 @@ class KernelRecord
 {
 public:
     KernelRecord():
-        hash(), nTime(0), address(""), nValue(0), idx(0), spent(false), coinAge(0), prevMinutes(0), prevDifficulty(0), prevProbability(0)
+        hash(), nTime(0), address(""), nValue(0), idx(0), spent(false), prevMinutes(0), prevDifficulty(0), prevProbability(0)
     {
     }
 
-    KernelRecord(uint256 hash, int64 nTime):
-            hash(hash), nTime(nTime), address(""), nValue(0), idx(0), spent(false), coinAge(0), prevMinutes(0), prevDifficulty(0), prevProbability(0)
+    KernelRecord(uint256 hash, int64_t nTime):
+            hash(hash), nTime(nTime), address(""), nValue(0), idx(0), spent(false), prevMinutes(0), prevDifficulty(0), prevProbability(0)
     {
     }
 
-    KernelRecord(uint256 hash, int64 nTime,
-                 const std::string &address,
-                 int64 nValue, bool spent, int64 coinAge):
+    KernelRecord(uint256 hash, int64_t nTime, const std::string &address, int64_t nValue, bool spent):
         hash(hash), nTime(nTime), address(address), nValue(nValue),
-        idx(0), spent(spent), coinAge(coinAge), prevMinutes(0), prevDifficulty(0), prevProbability(0)
+        idx(0), spent(spent), prevMinutes(0), prevDifficulty(0), prevProbability(0)
     {
     }
 
@@ -32,18 +30,18 @@ public:
 
 
     uint256 hash;
-    int64 nTime;
+    int64_t nTime;
     std::string address;
-    int64 nValue;
+    int64_t nValue;
     int idx;
     bool spent;
-    int64 coinAge;
 
     std::string getTxID();
-    int64 getAge() const;
+    int64_t getAge() const;
+    uint64_t getCoinDay() const;
     double getProbToMintStake(double difficulty, int timeOffset = 0) const;
     double getProbToMintWithinNMinutes(double difficulty, int minutes);
-    int64 getPoSReward(int nBits, int timeOffset);
+    int64_t getPoSReward(int nBits, int timeOffset);
 protected:
     int prevMinutes;
     double prevDifficulty;