aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2013-10-24 00:16:41 -0700
committerWladimir J. van der Laan <laanwj@gmail.com>2013-10-24 00:16:41 -0700
commit7ed1f6b42129a895aa5eaf862da0696e23def09f (patch)
treea60a3ef9ab7c1aa3906f90d606ca01c5221c9c30 /src
parent9d580b82c591c8bd3439f84fb1038e975af5c3ac (diff)
parent800d5b14c777dd4941ac04d73534858f7c769f6f (diff)
Merge pull request #3139 from Diapolo/maturity
[Qt]: fix num Blocks to maturity in Tx description
Diffstat (limited to 'src')
-rw-r--r--src/qt/transactiondesc.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index 93fc8cab22..63a72c4553 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -234,7 +234,10 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, int vout, int u
}
if (wtx.IsCoinBase())
- strHTML += "<br>" + tr("Generated coins must mature 120 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>";
+ {
+ quint32 numBlocksToMaturity = COINBASE_MATURITY + 1;
+ strHTML += "<br>" + tr("Generated coins must mature %1 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.").arg(QString::number(numBlocksToMaturity)) + "<br>";
+ }
//
// Debug view