{
status.status = TransactionStatus::Offline;
}
- else if (status.depth < 6)
+ else if (status.depth < NumConfirmations)
{
status.status = TransactionStatus::Unconfirmed;
}
SendToSelf
};
+ /* Number of confirmation needed for transaction */
+ static const int NumConfirmations = 6;
+
TransactionRecord():
hash(), time(0), type(Other), address(""), debit(0), credit(0), idx(0)
{
status = tr("Offline (%1)").arg(wtx->status.depth);
break;
case TransactionStatus::Unconfirmed:
- status = tr("Unconfirmed (%1)").arg(wtx->status.depth);
+ status = tr("Unconfirmed (%1/%2)").arg(wtx->status.depth).arg(TransactionRecord::NumConfirmations);
break;
case TransactionStatus::HaveConfirmations:
status = tr("Confirmed (%1)").arg(wtx->status.depth);