13 hash(), nTime(0), address(""), nValue(0), idx(0), spent(false), 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), prevMinutes(0), prevDifficulty(0), prevProbability(0)
22 KernelRecord(uint256 hash, int64_t nTime, const std::string &address, int64_t nValue, bool spent):
23 hash(hash), nTime(nTime), address(address), nValue(nValue),
24 idx(0), spent(spent), prevMinutes(0), prevDifficulty(0), prevProbability(0)
28 static bool showTransaction(const CWalletTx &wtx);
29 static std::vector<KernelRecord> decomposeOutput(const CWallet *wallet, const CWalletTx &wtx);
39 std::string getTxID();
40 int64_t getAge() const;
41 uint64_t getCoinDay() const;
42 double getProbToMintStake(double difficulty, int timeOffset = 0) const;
43 double getProbToMintWithinNMinutes(double difficulty, int minutes);
44 int64_t getPoSReward(int nBits, int timeOffset);
47 double prevDifficulty;
48 double prevProbability;
51 #endif // KERNELRECORD_H