mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-16 13:01:19 +02:00
remove magic number: change threshold for nLockTime to constant
This commit is contained in:
parent
f08736405e
commit
aa496b75c2
2 changed files with 4 additions and 2 deletions
|
|
@ -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());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue