update info string in GUI for generated blocks and change "must wait" into "must mature" to take the new immature label into consideration
This commit is contained in:
parent
11f73c728a
commit
40d23dafb7
@ -226,7 +226,7 @@ QString TransactionDesc::toHTML(CWallet *wallet, CWalletTx &wtx)
|
|||||||
strHTML += QString("<b>") + tr("Transaction ID:") + "</b> " + wtx.GetHash().ToString().c_str() + "<br>";
|
strHTML += QString("<b>") + tr("Transaction ID:") + "</b> " + wtx.GetHash().ToString().c_str() + "<br>";
|
||||||
|
|
||||||
if (wtx.IsCoinBase())
|
if (wtx.IsCoinBase())
|
||||||
strHTML += QString("<br>") + tr("Generated coins must wait 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, it will change to \"not accepted\" and not be spendable. This may occasionally happen if another node generates a block within a few seconds of yours.") + "<br>";
|
strHTML += QString("<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, it's 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>";
|
||||||
|
|
||||||
//
|
//
|
||||||
// Debug view
|
// Debug view
|
||||||
|
@ -298,8 +298,7 @@ QString TransactionTableModel::formatTxStatus(const TransactionRecord *wtx) cons
|
|||||||
switch(wtx->status.maturity)
|
switch(wtx->status.maturity)
|
||||||
{
|
{
|
||||||
case TransactionStatus::Immature:
|
case TransactionStatus::Immature:
|
||||||
status += "\n" + tr("Mined balance will be available in %n more blocks", "",
|
status += "\n" + tr("Mined balance will be available when it matures in %n more block(s)", "", wtx->status.matures_in);
|
||||||
wtx->status.matures_in);
|
|
||||||
break;
|
break;
|
||||||
case TransactionStatus::Mature:
|
case TransactionStatus::Mature:
|
||||||
break;
|
break;
|
||||||
|
Loading…
Reference in New Issue
Block a user