Merge pull request #752 from luke-jr/qt_txnid
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 10 Jan 2012 19:51:55 +0000 (11:51 -0800)
committerWladimir J. van der Laan <laanwj@gmail.com>
Tue, 10 Jan 2012 19:51:55 +0000 (11:51 -0800)
Qt: Show transaction ID in details

src/qt/transactiondesc.cpp

index 8de63c1..089fe75 100644 (file)
@@ -218,6 +218,8 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx)
         if (!wtx.mapValue["comment"].empty())
             strHTML += QString("<br><b>") + tr("Comment:") + "</b><br>" + GUIUtil::HtmlEscape(wtx.mapValue["comment"], true) + "<br>";
 
+        strHTML += QString("<b>") + tr("Transaction ID:") + "</b> " + wtx.GetHash().ToString().c_str() + "<br>";
+
         if (wtx.IsCoinBase())
             strHTML += QString("<br>") + tr("Generated coins must wait 120 blocks before they can be spent.  When you generated this block, it was broadcast to the network to be added to the block chain.  If it fails to get into the chain, it will change to \"not accepted\" and not be spendable.  This may occasionally happen if another node generates a block within a few seconds of yours.") + "<br>";