|
|
|
@ -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();
|
|
|
|
|