aboutsummaryrefslogtreecommitdiff
path: root/src/qt/transactiondesc.cpp
diff options
context:
space:
mode:
authorJonas Schnelli <dev@jonasschnelli.ch>2015-11-30 16:15:15 +0100
committerJonas Schnelli <dev@jonasschnelli.ch>2015-12-02 08:38:31 +0100
commita3c3ddbd7ba68b9a9871b8574e05cc146a69f811 (patch)
treee97f46bdf1161d13f5d1743c62baad816e39c131 /src/qt/transactiondesc.cpp
parent4077ad20d03f0ef61d48ef34b3107661b0ff8ffe (diff)
downloadbitcoin-a3c3ddbd7ba68b9a9871b8574e05cc146a69f811.tar.xz
[Qt] add InMempool() info to transaction details
Diffstat (limited to 'src/qt/transactiondesc.cpp')
-rw-r--r--src/qt/transactiondesc.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index 801c6c62d2..920ff06351 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -35,9 +35,11 @@ QString TransactionDesc::FormatTxStatus(const CWalletTx& wtx)
{
int nDepth = wtx.GetDepthInMainChain();
if (nDepth < 0)
- return tr("conflicted");
+ return tr("conflicted with a transaction with %1 confirmations").arg(-nDepth);
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")));
else if (nDepth < 6)
return tr("%1/unconfirmed").arg(nDepth);
else