diff options
author | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-10-24 09:04:46 +0200 |
---|---|---|
committer | Philip Kaufmann <phil.kaufmann@t-online.de> | 2013-10-24 09:04:46 +0200 |
commit | 800d5b14c777dd4941ac04d73534858f7c769f6f (patch) | |
tree | c6bfab6cb4bb1c40ea8fa03b7a3c3f2f68156ff2 /src | |
parent | 38fd11010795078ea1a4745f58fdf89e95e236c1 (diff) |
[Qt]: fix num Blocks to maturity in Tx description
- as we have main.h included in transactiondesc.cpp, we now also use
COINBASE_MATURITY + 1 for the descriptive string
- fixes #3131
Diffstat (limited to 'src')
-rw-r--r-- | src/qt/transactiondesc.cpp | 5 |
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 |