Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactionrecord.cpp
Show All 31 Lines | |||||
QList<TransactionRecord> | QList<TransactionRecord> | ||||
TransactionRecord::decomposeTransaction(const CWallet *wallet, | TransactionRecord::decomposeTransaction(const CWallet *wallet, | ||||
const CWalletTx &wtx) { | const CWalletTx &wtx) { | ||||
QList<TransactionRecord> parts; | QList<TransactionRecord> parts; | ||||
int64_t nTime = wtx.GetTxTime(); | int64_t nTime = wtx.GetTxTime(); | ||||
Amount nCredit = wtx.GetCredit(ISMINE_ALL); | Amount nCredit = wtx.GetCredit(ISMINE_ALL); | ||||
Amount nDebit = wtx.GetDebit(ISMINE_ALL); | Amount nDebit = wtx.GetDebit(ISMINE_ALL); | ||||
CAmount nNet = (nCredit - nDebit).GetSatoshis(); | CAmount nNet = (nCredit - nDebit).GetSatoshis(); | ||||
uint256 hash = wtx.GetId(); | TxHash hash = wtx.GetHash(); | ||||
std::map<std::string, std::string> mapValue = wtx.mapValue; | std::map<std::string, std::string> mapValue = wtx.mapValue; | ||||
if (nNet > 0 || wtx.IsCoinBase()) { | if (nNet > 0 || wtx.IsCoinBase()) { | ||||
// | // | ||||
// Credit | // Credit | ||||
// | // | ||||
for (unsigned int i = 0; i < wtx.tx->vout.size(); i++) { | for (unsigned int i = 0; i < wtx.tx->vout.size(); i++) { | ||||
const CTxOut &txout = wtx.tx->vout[i]; | const CTxOut &txout = wtx.tx->vout[i]; | ||||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |