From 0ae04fde4bc1b5528cc5365529331f614dea809d Mon Sep 17 00:00:00 2001 From: Jaquee Date: Mon, 23 Oct 2017 21:24:50 +0200 Subject: use 10 as default required confirmations --- src/model/TransactionHistoryModel.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/model') diff --git a/src/model/TransactionHistoryModel.cpp b/src/model/TransactionHistoryModel.cpp index c1f61fa1..907c21e8 100644 --- a/src/model/TransactionHistoryModel.cpp +++ b/src/model/TransactionHistoryModel.cpp @@ -3,6 +3,7 @@ #include "TransactionInfo.h" #include +#include TransactionHistoryModel::TransactionHistoryModel(QObject *parent) @@ -86,7 +87,7 @@ QVariant TransactionHistoryModel::data(const QModelIndex &index, int role) const result = tInfo->confirmations(); break; case TransactionConfirmationsRequiredRole: - result = (tInfo->blockHeight() < tInfo->unlockTime()) ? tInfo->unlockTime() - tInfo->blockHeight() : 0; + result = (tInfo->blockHeight() < tInfo->unlockTime()) ? tInfo->unlockTime() - tInfo->blockHeight() : 10; break; case TransactionHashRole: result = tInfo->hash(); -- cgit v1.2.3