mirror of
https://github.com/dashpay/dash.git
synced 2024-12-28 21:42:47 +01:00
fixed amounts
This commit is contained in:
parent
64659e19fc
commit
ca2d6ceebc
@ -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));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user