diff options
| author | Jaquee <jaquee.monero@gmail.com> | 2017-10-23 21:24:50 +0200 |
|---|---|---|
| committer | Jaquee <jaquee.monero@gmail.com> | 2017-10-23 21:24:50 +0200 |
| commit | 0ae04fde4bc1b5528cc5365529331f614dea809d (patch) | |
| tree | 2fd0a60dabcca0a0fe18df9f1ec3331b3ded8809 /src | |
| parent | e0d99cb1bbf4c4bd0c9797fba5043c82950496c1 (diff) | |
| download | monzero-gui-0ae04fde4bc1b5528cc5365529331f614dea809d.tar.gz monzero-gui-0ae04fde4bc1b5528cc5365529331f614dea809d.tar.xz monzero-gui-0ae04fde4bc1b5528cc5365529331f614dea809d.zip | |
use 10 as default required confirmations
Diffstat (limited to 'src')
| -rw-r--r-- | src/libwalletqt/TransactionHistory.cpp | 2 | ||||
| -rw-r--r-- | src/model/TransactionHistoryModel.cpp | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/libwalletqt/TransactionHistory.cpp b/src/libwalletqt/TransactionHistory.cpp index 31e8952e..eeb5c2a6 100644 --- a/src/libwalletqt/TransactionHistory.cpp +++ b/src/libwalletqt/TransactionHistory.cpp @@ -45,7 +45,7 @@ QList<TransactionInfo *> TransactionHistory::getAll() const if (ti->timestamp() <= firstDateTime) { firstDateTime = ti->timestamp(); } - quint64 requiredConfirmations = (ti->blockHeight() < ti->unlockTime()) ? ti->unlockTime() - ti->blockHeight() : 0; + quint64 requiredConfirmations = (ti->blockHeight() < ti->unlockTime()) ? ti->unlockTime() - ti->blockHeight() : 10; // store last tx height if (ti->confirmations() < requiredConfirmations && ti->blockHeight() >= lastTxHeight) { lastTxHeight = ti->blockHeight(); 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(); |
