X-Git-Url: https://git.novaco.in/?p=novacoin.git;a=blobdiff_plain;f=src%2Fqt%2Ftransactionrecord.cpp;h=18858e20517f55953904fb4aa29c8eec94887365;hp=4c3071984f14fb0997de81c0eacf19610e048630;hb=6145f2d5e9f380a11bce933fe343d48fd8936a33;hpb=ada04fc66d18048cb1d94ab02290be2796d9395f diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 4c30719..18858e2 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -31,7 +31,12 @@ QList TransactionRecord::decomposeTransaction(const CWallet * uint256 hash = wtx.GetHash(); std::map mapValue = wtx.mapValue; - if (nNet > 0 || wtx.IsCoinBase()) + if (wtx.IsCoinStake()) + { + // Stake generation + parts.append(TransactionRecord(hash, nTime, TransactionRecord::StakeMint, "", -nDebit, wtx.GetValueOut())); + } + else if (nNet > 0 || wtx.IsCoinBase()) { // // Credit @@ -192,7 +197,7 @@ void TransactionRecord::updateStatus(const CWalletTx &wtx) } // For generated transactions, determine maturity - if(type == TransactionRecord::Generated) + if(type == TransactionRecord::Generated || type == TransactionRecord::StakeMint) { int64 nCredit = wtx.GetCredit(true); if (nCredit == 0)