diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-07-09 10:26:46 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-07-09 10:30:23 +0200 |
| commit | 2eace48d9a50e5393f3627bcd0614ed9b262794a (patch) | |
| tree | cf27980d722561065041842ef028c2dc9337c1cf /src/qt/transactionrecord.cpp | |
| parent | Readme update (diff) | |
| download | discoin-2eace48d9a50e5393f3627bcd0614ed9b262794a.tar.xz discoin-2eace48d9a50e5393f3627bcd0614ed9b262794a.zip | |
remove magic number: change threshold for nLockTime to constant
Diffstat (limited to 'src/qt/transactionrecord.cpp')
| -rw-r--r-- | src/qt/transactionrecord.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qt/transactionrecord.cpp b/src/qt/transactionrecord.cpp index 1b527bc7d..c74b48bd6 100644 --- a/src/qt/transactionrecord.cpp +++ b/src/qt/transactionrecord.cpp @@ -195,7 +195,7 @@ void TransactionRecord::updateStatus(const CWalletTx &wtx) if (!wtx.IsFinal()) { - if (wtx.nLockTime < 500000000) + if (wtx.nLockTime < LOCKTIME_THRESHOLD) { status.status = TransactionStatus::OpenUntilBlock; status.open_for = nBestHeight - wtx.nLockTime; |