mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-01-19 14:53:43 +01:00
remove magic number: change threshold for nLockTime to constant
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user