fixed amounts

This commit is contained in:
Evan Duffield 2014-08-03 13:26:21 -07:00
parent 64659e19fc
commit ca2d6ceebc

View File

@ -166,23 +166,18 @@ QList<TransactionRecord> TransactionRecord::decomposeTransaction(const CWallet *
// //
// Mixed Debit // Mixed Debit
// //
TransactionRecord sub(hash, nTime); bool isDarksent = false;
sub.idx = parts.size();
sub.type = TransactionRecord::Other;
for (unsigned int nOut = 0; nOut < wtx.vout.size(); nOut++) for (unsigned int nOut = 0; nOut < wtx.vout.size(); nOut++)
{ {
const CTxOut& txout = wtx.vout[nOut]; const CTxOut& txout = wtx.vout[nOut];
BOOST_FOREACH(int64 d, darkSendDenominations){ BOOST_FOREACH(int64 d, darkSendDenominations)
if(txout.nValue == d) { if(txout.nValue == d)
sub.type = TransactionRecord::DarksendDenominate; isDarksent = true;
}
}
} }
parts.append(sub); parts.append(TransactionRecord(hash, nTime, isDarksent ? TransactionRecord::DarksendDenominate : TransactionRecord::Other, "", nNet, 0));
} }
} }