[Qt] Support for abandoned/abandoning transactions

This commit is contained in:
Jonas Schnelli
2016-03-17 17:54:54 +01:00
committed by lateminer
parent ae1775b6ae
commit db7da64904
12 changed files with 75 additions and 9 deletions

View File

@@ -39,7 +39,7 @@ QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
else if (GetAdjustedTime() - wtx.nTimeReceived > 2 * 60 && wtx.GetRequestCount() == 0)
return tr("%1/offline").arg(nDepth);
else if (nDepth == 0)
return tr("0/unconfirmed, %1").arg((wtx.InMempool() ? tr("in memory pool") : tr("not in memory pool")));
return tr("0/unconfirmed, %1").arg((wtx.InMempool() ? tr("in memory pool") : tr("not in memory pool"))) + (wtx.isAbandoned() ? ", "+tr("abandoned") : "");
else if (nDepth < 10)
return tr("%1/unconfirmed").arg(nDepth);
else