Skip to content

Commit b2221bd

Browse files
committed
GUI: Adjust recommended # of blocks confirmed to 16
Using the Antpool conglomerate's 48% would make this absurd (800+ blocks), so instead base it on Foundry at 31%
1 parent ca0b8ac commit b2221bd

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/qt/transactionrecord.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class TransactionRecord
7979
};
8080

8181
/** Number of confirmation recommended for accepting a transaction */
82-
static const int RecommendedNumConfirmations = 6;
82+
static const int RecommendedNumConfirmations = 16;
8383

8484
TransactionRecord():
8585
hash(), time(0), type(Other), address(""), debit(0), credit(0), idx(0)

src/qt/transactiontablemodel.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ QVariant TransactionTableModel::txStatusDecoration(const TransactionRecord *wtx)
454454
case TransactionStatus::Unconfirmed:
455455
return QIcon(":/icons/transaction_0");
456456
case TransactionStatus::Confirming:
457-
switch(wtx->status.depth)
457+
switch (wtx->status.depth * 6 / TransactionRecord::RecommendedNumConfirmations)
458458
{
459459
case 1: return QIcon(":/icons/transaction_1");
460460
case 2: return QIcon(":/icons/transaction_2");

0 commit comments

Comments
 (0)