Changeset View
Changeset View
Standalone View
Standalone View
src/qt/transactiondesc.cpp
Show All 19 Lines | |||||
#include "wallet/finaltx.h" | #include "wallet/finaltx.h" | ||||
#include "wallet/wallet.h" | #include "wallet/wallet.h" | ||||
#include <cstdint> | #include <cstdint> | ||||
#include <string> | #include <string> | ||||
QString TransactionDesc::FormatTxStatus(const CWalletTx &wtx) { | QString TransactionDesc::FormatTxStatus(const CWalletTx &wtx) { | ||||
AssertLockHeld(cs_main); | AssertLockHeld(cs_main); | ||||
if (!CheckFinalTx(wtx)) { | if (!CheckFinalTx(*wtx.tx)) { | ||||
if (wtx.tx->nLockTime < LOCKTIME_THRESHOLD) { | if (wtx.tx->nLockTime < LOCKTIME_THRESHOLD) { | ||||
return tr("Open for %n more block(s)", "", | return tr("Open for %n more block(s)", "", | ||||
wtx.tx->nLockTime - chainActive.Height()); | wtx.tx->nLockTime - chainActive.Height()); | ||||
} else { | } else { | ||||
return tr("Open until %1") | return tr("Open until %1") | ||||
.arg(GUIUtil::dateTimeStr(wtx.tx->nLockTime)); | .arg(GUIUtil::dateTimeStr(wtx.tx->nLockTime)); | ||||
} | } | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 369 Lines • Show Last 20 Lines |