Skip to content

Commit

Permalink
add memo warrning message and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
levoncrypto committed Nov 6, 2024
1 parent 43b5e3a commit 03c4906
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/qt/transactiondesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -326,12 +326,14 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco

CSparkOutputTx sparkOutput;
if (wallet->GetSparkOutputTx(txout.scriptPubKey, sparkOutput)) {
foundSparkOutput = true;
if (firstMessage) {
strHTML += "<hr><b>" + tr("Messages") + ":</b><br>";
firstMessage = false;
if (!sparkOutput.memo.empty()) {
foundSparkOutput = true;
if (firstMessage) {
strHTML += "<hr><b>" + tr("Messages") + ":</b><br>";
firstMessage = false;
}
strHTML += "" + GUIUtil::HtmlEscape(sparkOutput.memo, true) + "<br>";
}
strHTML += "" + GUIUtil::HtmlEscape(sparkOutput.memo, true) + "<br>";
}
}
}
Expand Down

0 comments on commit 03c4906

Please sign in to comment.