From ca2d6ceebc407c9dd25616261d47ffe4d158584f Mon Sep 17 00:00:00 2001 From: Evan Duffield Date: Sun, 3 Aug 2014 13:26:21 -0700 Subject: [PATCH] fixed amounts --- src/qt/transactionrecord.cpp | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 4b53e77859..ea368d1c8a 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -166,23 +166,18 @@ QList TransactionRecord::decomposeTransaction(const CWallet * // // Mixed Debit // - TransactionRecord sub(hash, nTime); - sub.idx = parts.size(); - sub.type = TransactionRecord::Other; + bool isDarksent = false; for (unsigned int nOut = 0; nOut < wtx.vout.size(); nOut++) { const CTxOut& txout = wtx.vout[nOut]; - BOOST_FOREACH(int64 d, darkSendDenominations){ - if(txout.nValue == d) { - sub.type = TransactionRecord::DarksendDenominate; - } - } - + BOOST_FOREACH(int64 d, darkSendDenominations) + if(txout.nValue == d) + isDarksent = true; } - parts.append(sub); + parts.append(TransactionRecord(hash, nTime, isDarksent ? TransactionRecord::DarksendDenominate : TransactionRecord::Other, "", nNet, 0)); } }