|
|
@ -8,6 +8,7 @@ |
|
|
|
#include "ui_interface.h" |
|
|
|
#include "ui_interface.h" |
|
|
|
#include "base58.h" |
|
|
|
#include "base58.h" |
|
|
|
#include "paymentserver.h" |
|
|
|
#include "paymentserver.h" |
|
|
|
|
|
|
|
#include "transactionrecord.h" |
|
|
|
|
|
|
|
|
|
|
|
#include <string> |
|
|
|
#include <string> |
|
|
|
|
|
|
|
|
|
|
@ -32,7 +33,7 @@ QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx) |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int unit) |
|
|
|
QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int unit) |
|
|
|
{ |
|
|
|
{ |
|
|
|
QString strHTML; |
|
|
|
QString strHTML; |
|
|
|
|
|
|
|
|
|
|
@ -215,7 +216,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int unit) |
|
|
|
if (wtx.mapValue.count("comment") && !wtx.mapValue["comment"].empty()) |
|
|
|
if (wtx.mapValue.count("comment") && !wtx.mapValue["comment"].empty()) |
|
|
|
strHTML += "<br><b>" + tr("Comment") + ":</b><br>" + GUIUtil::HtmlEscape(wtx.mapValue["comment"], true) + "<br>"; |
|
|
|
strHTML += "<br><b>" + tr("Comment") + ":</b><br>" + GUIUtil::HtmlEscape(wtx.mapValue["comment"], true) + "<br>"; |
|
|
|
|
|
|
|
|
|
|
|
strHTML += "<b>" + tr("Transaction ID") + ":</b> " + wtx.GetHash().ToString().c_str() + "<br>"; |
|
|
|
strHTML += "<b>" + tr("Transaction ID") + ":</b> " + TransactionRecord::formatSubTxId(wtx.GetHash(), vout) + "<br>"; |
|
|
|
|
|
|
|
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// PaymentRequest info:
|
|
|
|
// PaymentRequest info:
|
|
|
@ -225,7 +226,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int unit) |
|
|
|
if (r.first == "PaymentRequest") |
|
|
|
if (r.first == "PaymentRequest") |
|
|
|
{ |
|
|
|
{ |
|
|
|
PaymentRequestPlus req; |
|
|
|
PaymentRequestPlus req; |
|
|
|
req.parse(QByteArray::fromRawData(r.second.c_str(), r.second.size())); |
|
|
|
req.parse(QByteArray::fromRawData(r.second.data(), r.second.size())); |
|
|
|
QString merchant; |
|
|
|
QString merchant; |
|
|
|
if (req.getMerchant(PaymentServer::getCertStore(), merchant)) |
|
|
|
if (req.getMerchant(PaymentServer::getCertStore(), merchant)) |
|
|
|
strHTML += "<b>" + tr("Merchant") + ":</b> " + GUIUtil::HtmlEscape(merchant) + "<br>"; |
|
|
|
strHTML += "<b>" + tr("Merchant") + ":</b> " + GUIUtil::HtmlEscape(merchant) + "<br>"; |
|
|
|