aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/qt/transactiontablemodel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qt/transactiontablemodel.cpp b/src/qt/transactiontablemodel.cpp
index 458341c0f5..988a91ee90 100644
--- a/src/qt/transactiontablemodel.cpp
+++ b/src/qt/transactiontablemodel.cpp
@@ -588,7 +588,9 @@ QVariant TransactionTableModel::data(const QModelIndex &index, int role) const
}
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)
{