13 hash(), nTime(0), address(""), nValue(0), idx(0), spent(false), coinAge(0), prevMinutes(0), prevDifficulty(0), prevProbability(0)
17 KernelRecord(uint256 hash, int64 nTime):
18 hash(hash), nTime(nTime), address(""), nValue(0), idx(0), spent(false), coinAge(0), prevMinutes(0), prevDifficulty(0), prevProbability(0)
22 KernelRecord(uint256 hash, int64 nTime,
23 const std::string &address,
24 int64 nValue, bool spent, int64 coinAge):
25 hash(hash), nTime(nTime), address(address), nValue(nValue),
26 idx(0), spent(spent), coinAge(coinAge), prevMinutes(0), prevDifficulty(0), prevProbability(0)
30 static bool showTransaction(const CWalletTx &wtx);
31 static std::vector<KernelRecord> decomposeOutput(const CWallet *wallet, const CWalletTx &wtx);
42 std::string getTxID();
44 uint64 getCoinDay() const;
45 double getProbToMintStake(double difficulty, int timeOffset = 0) const;
46 double getProbToMintWithinNMinutes(double difficulty, int minutes);
47 int64 getPoSReward(int nBits, int timeOffset);
50 double prevDifficulty;
51 double prevProbability;
54 #endif // KERNELRECORD_H