@@ -55,8 +55,8 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
55
55
strHTML += " <html><font face='verdana, arial, helvetica, sans-serif'>" ;
56
56
57
57
int64_t nTime = wtx.GetTxTime ();
58
- int64_t nCredit = wtx.GetCredit (MINE_SPENDABLE|MINE_WATCH_ONLY );
59
- int64_t nDebit = wtx.GetDebit (MINE_SPENDABLE|MINE_WATCH_ONLY );
58
+ int64_t nCredit = wtx.GetCredit (MINE_ALL );
59
+ int64_t nDebit = wtx.GetDebit (MINE_ALL );
60
60
int64_t nNet = nCredit - nDebit;
61
61
62
62
strHTML += " <b>" + tr (" Status" ) + " :</b> " + FormatTxStatus (wtx);
@@ -133,7 +133,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
133
133
//
134
134
int64_t nUnmatured = 0 ;
135
135
BOOST_FOREACH (const CTxOut& txout, wtx.vout )
136
- nUnmatured += wallet->GetCredit (txout, MINE_SPENDABLE|MINE_WATCH_ONLY );
136
+ nUnmatured += wallet->GetCredit (txout, MINE_ALL );
137
137
strHTML += " <b>" + tr (" Credit" ) + " :</b> " ;
138
138
if (wtx.IsInMainChain ())
139
139
strHTML += BitcoinUnits::formatWithUnit (unit, nUnmatured)+ " (" + tr (" matures in %n more block(s)" , " " , wtx.GetBlocksToMaturity ()) + " )" ;
@@ -222,10 +222,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
222
222
//
223
223
BOOST_FOREACH (const CTxIn& txin, wtx.vin )
224
224
if (wallet->IsMine (txin))
225
- strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -wallet->GetDebit (txin, MINE_SPENDABLE|MINE_WATCH_ONLY )) + " <br>" ;
225
+ strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -wallet->GetDebit (txin, MINE_ALL )) + " <br>" ;
226
226
BOOST_FOREACH (const CTxOut& txout, wtx.vout )
227
227
if (wallet->IsMine (txout))
228
- strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, wallet->GetCredit (txout, MINE_SPENDABLE|MINE_WATCH_ONLY )) + " <br>" ;
228
+ strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, wallet->GetCredit (txout, MINE_ALL )) + " <br>" ;
229
229
}
230
230
}
231
231
@@ -275,10 +275,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
275
275
strHTML += " <hr><br>" + tr (" Debug information" ) + " <br><br>" ;
276
276
BOOST_FOREACH (const CTxIn& txin, wtx.vin )
277
277
if (wallet->IsMine (txin))
278
- strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -wallet->GetDebit (txin, MINE_SPENDABLE|MINE_WATCH_ONLY )) + " <br>" ;
278
+ strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, -wallet->GetDebit (txin, MINE_ALL )) + " <br>" ;
279
279
BOOST_FOREACH (const CTxOut& txout, wtx.vout )
280
280
if (wallet->IsMine (txout))
281
- strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, wallet->GetCredit (txout, MINE_SPENDABLE|MINE_WATCH_ONLY )) + " <br>" ;
281
+ strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatWithUnit (unit, wallet->GetCredit (txout, MINE_ALL )) + " <br>" ;
282
282
283
283
strHTML += " <br><b>" + tr (" Transaction" ) + " :</b><br>" ;
284
284
strHTML += GUIUtil::HtmlEscape (wtx.ToString (), true );
0 commit comments