uint256 hash = wtx.GetHash();
std::map<std::string, std::string> 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
}
// For generated transactions, determine maturity
- if(type == TransactionRecord::Generated)
+ if(type == TransactionRecord::Generated || type == TransactionRecord::StakeMint)
{
int64 nCredit = wtx.GetCredit(true);
if (nCredit == 0)