Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiondesc.cpp
Show First 20 Lines • Show All 263 Lines • ▼ Show 20 Lines | QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, | ||||
if (wtx.mapValue.count("message") && !wtx.mapValue["message"].empty()) | if (wtx.mapValue.count("message") && !wtx.mapValue["message"].empty()) | ||||
strHTML += "<br><b>" + tr("Message") + ":</b><br>" + | strHTML += "<br><b>" + tr("Message") + ":</b><br>" + | ||||
GUIUtil::HtmlEscape(wtx.mapValue["message"], true) + "<br>"; | GUIUtil::HtmlEscape(wtx.mapValue["message"], true) + "<br>"; | ||||
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>" + | strHTML += "<br><b>" + tr("Comment") + ":</b><br>" + | ||||
GUIUtil::HtmlEscape(wtx.mapValue["comment"], true) + "<br>"; | GUIUtil::HtmlEscape(wtx.mapValue["comment"], true) + "<br>"; | ||||
strHTML += | strHTML += | ||||
"<b>" + tr("Transaction ID") + ":</b> " + rec->getTxID() + "<br>"; | "<b>" + tr("Transaction ID") + ":</b> " + rec->getTxHash() + "<br>"; | ||||
strHTML += "<b>" + tr("Transaction total size") + ":</b> " + | strHTML += "<b>" + tr("Transaction total size") + ":</b> " + | ||||
QString::number(wtx.tx->GetTotalSize()) + " bytes<br>"; | QString::number(wtx.tx->GetTotalSize()) + " bytes<br>"; | ||||
strHTML += "<b>" + tr("Output index") + ":</b> " + | strHTML += "<b>" + tr("Output index") + ":</b> " + | ||||
QString::number(rec->getOutputIndex()) + "<br>"; | QString::number(rec->getOutputIndex()) + "<br>"; | ||||
// Message from normal bitcoincash:URI (bitcoincash:123...?message=example) | // Message from normal bitcoincash:URI (bitcoincash:123...?message=example) | ||||
for (const std::pair<std::string, std::string> &r : wtx.vOrderForm) { | for (const std::pair<std::string, std::string> &r : wtx.vOrderForm) { | ||||
if (r.first == "Message") | if (r.first == "Message") | ||||
▲ Show 20 Lines • Show All 99 Lines • Show Last 20 Lines |