From 4bd658ea6d52dff0194851d29f88413d1fce6c99 Mon Sep 17 00:00:00 2001 From: Jeremiah Buddenhagen Date: Thu, 25 Jan 2018 17:09:59 -0800 Subject: [PATCH] Add tx comment to transaction details --- src/qt/transactiondesc.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp index bcacc47ef..e924d50dd 100644 --- a/src/qt/transactiondesc.cpp +++ b/src/qt/transactiondesc.cpp @@ -270,6 +270,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco strHTML += "
" + tr("Generated coins must mature %1 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, its state will change to \"not accepted\" and it won't be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.").arg(QString::number(numBlocksToMaturity)) + "
"; } + // Transaction Comment + if (!wtx.tx->strTxComment.empty()) + strHTML += "
" + tr("Transaction Comment") + ":
" + GUIUtil::HtmlEscape(wtx.tx->strTxComment, true) + "
"; + // // Debug view //