aboutsummaryrefslogtreecommitdiff
path: root/src/ui.cpp
diff options
context:
space:
mode:
authorWladimir J. van der Laan <laanwj@gmail.com>2011-07-09 10:06:49 +0200
committerWladimir J. van der Laan <laanwj@gmail.com>2011-07-09 10:25:12 +0200
commitfa989f42c1e2a927267ef8839563e21a2cd4b712 (patch)
treee44c253903b2ef919d3c15e0993351dfef55c77c /src/ui.cpp
parent42c405ad2340c11c769643ab8aee5e6ab118d2a1 (diff)
downloadbitcoin-fa989f42c1e2a927267ef8839563e21a2cd4b712.tar.xz
remove magic number: change threshold for nLockTime to constant
Diffstat (limited to 'src/ui.cpp')
-rw-r--r--src/ui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp
index 9b84fb9e6b..ff0b4afb55 100644
--- a/src/ui.cpp
+++ b/src/ui.cpp
@@ -522,7 +522,7 @@ string FormatTxStatus(const CWalletTx& wtx)
// Status
if (!wtx.IsFinal())
{
- if (wtx.nLockTime < 500000000)
+ if (wtx.nLockTime < LOCKTIME_THRESHOLD)
return strprintf(_("Open for %d blocks"), nBestHeight - wtx.nLockTime);
else
return strprintf(_("Open until %s"), DateTimeStr(wtx.nLockTime).c_str());