diff options
| author | Wladimir J. van der Laan <[email protected]> | 2011-07-09 10:06:49 +0200 |
|---|---|---|
| committer | Wladimir J. van der Laan <[email protected]> | 2011-07-09 10:11:28 +0200 |
| commit | aa496b75c2ff3bfb232d1ab023391f62a0183fd5 (patch) | |
| tree | 67abb7bd2f19c5850b0d3dc80bec8f321b2cca47 /src/ui.cpp | |
| parent | Compile 'sv' translation (diff) | |
| download | discoin-aa496b75c2ff3bfb232d1ab023391f62a0183fd5.tar.xz discoin-aa496b75c2ff3bfb232d1ab023391f62a0183fd5.zip | |
remove magic number: change threshold for nLockTime to constant
Diffstat (limited to 'src/ui.cpp')
| -rw-r--r-- | src/ui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ui.cpp b/src/ui.cpp index 9b84fb9e6..ff0b4afb5 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()); |