Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gui: Remove legacy GUI transaction description for contracts #1772

Merged
merged 2 commits into from
Jul 2, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions src/qt/transactiondesc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ std::string PubKeyToGRCAddress(const CScript& scriptPubKey)
QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, unsigned int vout)
{
QString strHTML;

LOCK2(cs_main, wallet->cs_wallet);

strHTML.reserve(9250);
Expand Down Expand Up @@ -332,22 +332,6 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, unsigned int vo
strHTML += "<br><br>" + tr("Gridcoin generated coins must mature 110 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.") + "<br>";
}

else if (!wtx.hashBoinc.empty())
{
strHTML += "<hr><br><b>" + tr("Transaction Message Data") + "</b><br><br>";

std::vector<std::pair<std::string, std::string>> vTxNormalInfoIn = GetTxNormalBoincHashInfo(wtx);

for (auto const& vTxNormalInfo : vTxNormalInfoIn)
{
strHTML += "<b>";
strHTML += MakeSafeMessage(vTxNormalInfo.first).c_str();
strHTML += ": </b>";
strHTML += MakeSafeMessage(vTxNormalInfo.second).c_str();
strHTML += "<br>";
}
}

if (LogInstance().WillLogCategory(BCLog::LogFlags::VERBOSE) || true)
{
strHTML += "<hr><br><b>" + tr("Transaction Debits/Credits") + "</b><br><br>";
Expand Down
Loading