aboutsummaryrefslogtreecommitdiff
path: root/src/qt
diff options
context:
space:
mode:
authorlangerhans <[email protected]>2015-07-31 21:23:27 +0200
committerlangerhans <[email protected]>2015-07-31 21:29:43 +0200
commit38a83007e827b4585e04f23f838bbf1eef4bf7a6 (patch)
treef47a68b74366aea7824977d019a561554f4a8de1 /src/qt
parentMake RegTest use simplified rewards for easier test vector setup and use shor... (diff)
downloaddiscoin-38a83007e827b4585e04f23f838bbf1eef4bf7a6.tar.xz
discoin-38a83007e827b4585e04f23f838bbf1eef4bf7a6.zip
Move COINBASE_MATURITY to the consensus parameters
Diffstat (limited to 'src/qt')
-rw-r--r--src/qt/transactiondesc.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt/transactiondesc.cpp b/src/qt/transactiondesc.cpp
index 5662b1665..aab31f1c1 100644
--- a/src/qt/transactiondesc.cpp
+++ b/src/qt/transactiondesc.cpp
@@ -10,6 +10,7 @@
#include "transactionrecord.h"
#include "base58.h"
+#include "chainparams.h"
#include "consensus/consensus.h"
#include "main.h"
#include "script/script.h"
@@ -264,8 +265,8 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx, TransactionReco
if (wtx.IsCoinBase())
{
- 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>";
+ quint32 nCoinbaseMaturity = Params().GetConsensus(chainActive.Height()).nCoinbaseMaturity + 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(nCoinbaseMaturity)) + "<br>";
}
//