@@ -26,10 +26,10 @@ QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
2626 AssertLockHeld (cs_main);
2727 if (!CheckFinalTx (wtx))
2828 {
29- if (wtx.nLockTime < LOCKTIME_THRESHOLD)
30- return tr (" Open for %n more block(s)" , " " , wtx.nLockTime - chainActive.Height ());
29+ if (wtx.tx -> nLockTime < LOCKTIME_THRESHOLD)
30+ return tr (" Open for %n more block(s)" , " " , wtx.tx -> nLockTime - chainActive.Height ());
3131 else
32- return tr (" Open until %1" ).arg (GUIUtil::dateTimeStr (wtx.nLockTime ));
32+ return tr (" Open until %1" ).arg (GUIUtil::dateTimeStr (wtx.tx -> nLockTime ));
3333 }
3434 else
3535 {
@@ -133,7 +133,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
133133 // Coinbase
134134 //
135135 CAmount nUnmatured = 0 ;
136- BOOST_FOREACH (const CTxOut& txout, wtx.vout )
136+ BOOST_FOREACH (const CTxOut& txout, wtx.tx -> vout )
137137 nUnmatured += wallet->GetCredit (txout, ISMINE_ALL);
138138 strHTML += " <b>" + tr (" Credit" ) + " :</b> " ;
139139 if (wtx.IsInMainChain ())
@@ -152,14 +152,14 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
152152 else
153153 {
154154 isminetype fAllFromMe = ISMINE_SPENDABLE;
155- BOOST_FOREACH (const CTxIn& txin, wtx.vin )
155+ BOOST_FOREACH (const CTxIn& txin, wtx.tx -> vin )
156156 {
157157 isminetype mine = wallet->IsMine (txin);
158158 if (fAllFromMe > mine) fAllFromMe = mine;
159159 }
160160
161161 isminetype fAllToMe = ISMINE_SPENDABLE;
162- BOOST_FOREACH (const CTxOut& txout, wtx.vout )
162+ BOOST_FOREACH (const CTxOut& txout, wtx.tx -> vout )
163163 {
164164 isminetype mine = wallet->IsMine (txout);
165165 if (fAllToMe > mine) fAllToMe = mine;
@@ -173,7 +173,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
173173 //
174174 // Debit
175175 //
176- BOOST_FOREACH (const CTxOut& txout, wtx.vout )
176+ BOOST_FOREACH (const CTxOut& txout, wtx.tx -> vout )
177177 {
178178 // Ignore change
179179 isminetype toSelf = wallet->IsMine (txout);
@@ -212,7 +212,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
212212 strHTML += " <b>" + tr (" Total credit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, nValue) + " <br>" ;
213213 }
214214
215- CAmount nTxFee = nDebit - wtx.GetValueOut ();
215+ CAmount nTxFee = nDebit - wtx.tx -> GetValueOut ();
216216 if (nTxFee > 0 )
217217 strHTML += " <b>" + tr (" Transaction fee" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -nTxFee) + " <br>" ;
218218 }
@@ -221,10 +221,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
221221 //
222222 // Mixed debit transaction
223223 //
224- BOOST_FOREACH (const CTxIn& txin, wtx.vin )
224+ BOOST_FOREACH (const CTxIn& txin, wtx.tx -> vin )
225225 if (wallet->IsMine (txin))
226226 strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -wallet->GetDebit (txin, ISMINE_ALL)) + " <br>" ;
227- BOOST_FOREACH (const CTxOut& txout, wtx.vout )
227+ BOOST_FOREACH (const CTxOut& txout, wtx.tx -> vout )
228228 if (wallet->IsMine (txout))
229229 strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, wallet->GetCredit (txout, ISMINE_ALL)) + " <br>" ;
230230 }
@@ -241,7 +241,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
241241 strHTML += " <br><b>" + tr (" Comment" ) + " :</b><br>" + GUIUtil::HtmlEscape (wtx.mapValue [" comment" ], true ) + " <br>" ;
242242
243243 strHTML += " <b>" + tr (" Transaction ID" ) + " :</b> " + rec->getTxID () + " <br>" ;
244- strHTML += " <b>" + tr (" Transaction total size" ) + " :</b> " + QString::number (wtx.GetTotalSize ()) + " bytes<br>" ;
244+ strHTML += " <b>" + tr (" Transaction total size" ) + " :</b> " + QString::number (wtx.tx -> GetTotalSize ()) + " bytes<br>" ;
245245 strHTML += " <b>" + tr (" Output index" ) + " :</b> " + QString::number (rec->getOutputIndex ()) + " <br>" ;
246246
247247 // Message from normal bitcoin:URI (bitcoin:123...?message=example)
@@ -276,20 +276,20 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
276276 if (fDebug )
277277 {
278278 strHTML += " <hr><br>" + tr (" Debug information" ) + " <br><br>" ;
279- BOOST_FOREACH (const CTxIn& txin, wtx.vin )
279+ BOOST_FOREACH (const CTxIn& txin, wtx.tx -> vin )
280280 if (wallet->IsMine (txin))
281281 strHTML += " <b>" + tr (" Debit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, -wallet->GetDebit (txin, ISMINE_ALL)) + " <br>" ;
282- BOOST_FOREACH (const CTxOut& txout, wtx.vout )
282+ BOOST_FOREACH (const CTxOut& txout, wtx.tx -> vout )
283283 if (wallet->IsMine (txout))
284284 strHTML += " <b>" + tr (" Credit" ) + " :</b> " + BitcoinUnits::formatHtmlWithUnit (unit, wallet->GetCredit (txout, ISMINE_ALL)) + " <br>" ;
285285
286286 strHTML += " <br><b>" + tr (" Transaction" ) + " :</b><br>" ;
287- strHTML += GUIUtil::HtmlEscape (wtx.ToString (), true );
287+ strHTML += GUIUtil::HtmlEscape (wtx.tx -> ToString (), true );
288288
289289 strHTML += " <br><b>" + tr (" Inputs" ) + " :</b>" ;
290290 strHTML += " <ul>" ;
291291
292- BOOST_FOREACH (const CTxIn& txin, wtx.vin )
292+ BOOST_FOREACH (const CTxIn& txin, wtx.tx -> vin )
293293 {
294294 COutPoint prevout = txin.prevout ;
295295
0 commit comments