aboutsummaryrefslogtreecommitdiff
path: root/src/model/TransactionHistoryModel.cpp
diff options
context:
space:
mode:
authorluigi1111 <luigi1111w@gmail.com>2017-10-23 15:59:26 -0500
committerluigi1111 <luigi1111w@gmail.com>2017-10-23 15:59:26 -0500
commit80a058c954817bf710561cf6866a895e77664805 (patch)
treed43894aaeddb5bc93e6fb53c3670c413b178584d /src/model/TransactionHistoryModel.cpp
parentff1780aeaaa6a53f59281be3791a53c9968943ab (diff)
parent0ae04fde4bc1b5528cc5365529331f614dea809d (diff)
downloadmonzero-gui-80a058c954817bf710561cf6866a895e77664805.tar.gz
monzero-gui-80a058c954817bf710561cf6866a895e77664805.tar.xz
monzero-gui-80a058c954817bf710561cf6866a895e77664805.zip
Merge pull request #920
0ae04fd use 10 as default required confirmations
Diffstat (limited to 'src/model/TransactionHistoryModel.cpp')
-rw-r--r--src/model/TransactionHistoryModel.cpp3
1 files changed, 2 insertions, 1 deletions
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 <QDateTime>
+#include <QDebug>
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();