X-Git-Url: https://git.novaco.in/?a=blobdiff_plain;f=src%2Fkernelrecord.h;h=8f32816487c1c0f607cc518a5d2b63a01cfcc924;hb=1ebe5b92ef18395cdae9b88fc38b0ed6166c3243;hp=fce7b242565d522f0db52754f192416822b4f627;hpb=43f22dc5180d953d278580dff887245a4f44a4da;p=novacoin.git diff --git a/src/kernelrecord.h b/src/kernelrecord.h index fce7b24..8f32816 100644 --- a/src/kernelrecord.h +++ b/src/kernelrecord.h @@ -14,14 +14,14 @@ public: { } - KernelRecord(uint256 hash, int64 nTime): + KernelRecord(uint256 hash, int64_t nTime): hash(hash), nTime(nTime), address(""), nValue(0), idx(0), spent(false), coinAge(0), prevMinutes(0), prevDifficulty(0), prevProbability(0) { } - KernelRecord(uint256 hash, int64 nTime, + KernelRecord(uint256 hash, int64_t nTime, const std::string &address, - int64 nValue, bool spent, int64 coinAge): + int64_t nValue, bool spent, int64_t coinAge): hash(hash), nTime(nTime), address(address), nValue(nValue), idx(0), spent(spent), coinAge(coinAge), prevMinutes(0), prevDifficulty(0), prevProbability(0) { @@ -32,19 +32,19 @@ public: uint256 hash; - int64 nTime; + int64_t nTime; std::string address; - int64 nValue; + int64_t nValue; int idx; bool spent; - int64 coinAge; + int64_t coinAge; std::string getTxID(); - int64 getAge() const; - uint64 getCoinDay() 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;