From 19fba3cd24641407308c5c90abcff6a43365b55a Mon Sep 17 00:00:00 2001 From: "Wladimir J. van der Laan" Date: Fri, 29 Jul 2011 23:11:40 +0200 Subject: Make debug info more interesting (show SHA160 addresses for inputs) --- src/qt/transactiondesc.cpp | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index 625b8e3f5e..9aeee5deba 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -271,36 +271,48 @@ string TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx) // if (fDebug) { - strHTML += "

debug print

"; + strHTML += "

Debug information

"; BOOST_FOREACH(const CTxIn& txin, wtx.vin) if(wallet->IsMine(txin)) - strHTML += "Debit: " + FormatMoney(-wallet->IsMine(txin)) + "
"; + strHTML += "Debit: " + FormatMoney(-wallet->GetDebit(txin)) + "
"; BOOST_FOREACH(const CTxOut& txout, wtx.vout) if(wallet->IsMine(txout)) - strHTML += "Credit: " + FormatMoney(wallet->IsMine(txout)) + "
"; + strHTML += "Credit: " + FormatMoney(wallet->GetCredit(txout)) + "
"; strHTML += "
Transaction:
"; strHTML += HtmlEscape(wtx.ToString(), true); - strHTML += "
Inputs:
"; + CTxDB txdb("r"); // To fetch source txouts + + strHTML += "
Inputs:"; + strHTML += ""; } -- cgit v1.2.3