Mercurial > hg > bitcoin
changeset 1248:68f3251385ed draft
Clarity: change definition of "confirmed" to "counts towards balance"
author | Wladimir J. van der Laan <laanwj@gmail.com> |
---|---|
date | Thu, 04 Aug 2011 04:40:01 +0200 |
parents | 26a36cda316e |
children | 46abd0f14659 |
files | src/qt/transactiontablemodel.cpp |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/qt/transactiontablemodel.cpp +++ b/src/qt/transactiontablemodel.cpp @@ -588,7 +588,9 @@ } else if (role == ConfirmedRole) { - return rec->status.status == TransactionStatus::HaveConfirmations; + // Return True if transaction counts for balance + return rec->status.confirmed && !(rec->type == TransactionRecord::Generated && + rec->status.maturity != TransactionStatus::Mature); } else if (role == FormattedAmountRole) {