|
|
|
@ -102,7 +102,7 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
|
|
|
|
|
if (IsValidDestination(address)) {
|
|
|
|
|
std::string name;
|
|
|
|
|
isminetype ismine;
|
|
|
|
|
if (wallet.getAddress(address, &name, &ismine))
|
|
|
|
|
if (wallet.getAddress(address, &name, &ismine, /* purpose= */ nullptr))
|
|
|
|
|
{
|
|
|
|
|
strHTML += "<b>" + tr("From") + ":</b> " + tr("unknown") + "<br>";
|
|
|
|
|
strHTML += "<b>" + tr("To") + ":</b> ";
|
|
|
|
@ -128,7 +128,8 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
|
|
|
|
|
strHTML += "<b>" + tr("To") + ":</b> ";
|
|
|
|
|
CTxDestination dest = DecodeDestination(strAddress);
|
|
|
|
|
std::string name;
|
|
|
|
|
if (wallet.getAddress(dest, &name) && !name.empty())
|
|
|
|
|
if (wallet.getAddress(
|
|
|
|
|
dest, &name, /* is_mine= */ nullptr, /* purpose= */ nullptr) && !name.empty())
|
|
|
|
|
strHTML += GUIUtil::HtmlEscape(name) + " ";
|
|
|
|
|
strHTML += GUIUtil::HtmlEscape(strAddress) + "<br>";
|
|
|
|
|
}
|
|
|
|
@ -196,7 +197,8 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
|
|
|
|
|
{
|
|
|
|
|
strHTML += "<b>" + tr("To") + ":</b> ";
|
|
|
|
|
std::string name;
|
|
|
|
|
if (wallet.getAddress(address, &name) && !name.empty())
|
|
|
|
|
if (wallet.getAddress(
|
|
|
|
|
address, &name, /* is_mine= */ nullptr, /* purpose= */ nullptr) && !name.empty())
|
|
|
|
|
strHTML += GUIUtil::HtmlEscape(name) + " ";
|
|
|
|
|
strHTML += GUIUtil::HtmlEscape(EncodeDestination(address));
|
|
|
|
|
if(toSelf == ISMINE_SPENDABLE)
|
|
|
|
@ -319,7 +321,7 @@ QString TransactionDesc::toHTML(interfaces::Node& node, interfaces::Wallet& wall
|
|
|
|
|
if (ExtractDestination(vout.scriptPubKey, address))
|
|
|
|
|
{
|
|
|
|
|
std::string name;
|
|
|
|
|
if (wallet.getAddress(address, &name) && !name.empty())
|
|
|
|
|
if (wallet.getAddress(address, &name, /* is_mine= */ nullptr, /* purpose= */ nullptr) && !name.empty())
|
|
|
|
|
strHTML += GUIUtil::HtmlEscape(name) + " ";
|
|
|
|
|
strHTML += QString::fromStdString(EncodeDestination(address));
|
|
|
|
|
}
|
|
|
|
|