13 hash(), nTime(0), address(""), nValue(0), idx(0), spent(false), coinAge(0), prevMinutes(0), prevDifficulty(0), prevProbability(0)
17 KernelRecord(uint256 hash, int64_t 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_t nTime,
23 const std::string &address,
24 int64_t nValue, bool spent, int64_t 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();
43 int64_t getAge() const;
44 uint64_t getCoinDay() const;
45 double getProbToMintStake(double difficulty, int timeOffset = 0) const;
46 double getProbToMintWithinNMinutes(double difficulty, int minutes);
47 int64_t getPoSReward(int nBits, int timeOffset);
50 double prevDifficulty;
51 double prevProbability;
54 #endif // KERNELRECORD_H