Skip to content

Commit df372ec

Browse files
authored
Fix off-by-one error for coinbase txes confirmation icons (#3206)
1 parent 1e94e33 commit df372ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/qt/transactiontablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,7 @@ QVariant TransactionTableModel::txStatusDecoration(const TransactionRecord *wtx)
544544
return QIcon(":/icons/transaction_conflicted");
545545
case TransactionStatus::Immature: {
546546
int total = wtx->status.depth + wtx->status.matures_in;
547-
int part = (wtx->status.depth * 4 / total) + 1;
547+
int part = (wtx->status.depth * 5 / total) + 1;
548548
return QIcon(QString(":/icons/transaction_%1").arg(part));
549549
}
550550
case TransactionStatus::MaturesWarning:

0 commit comments

Comments
 (0)