remove magic number: change threshold for nLockTime to constant
This commit is contained in:
1 parent
460cd40aa5
commit
2eace48d9a
2 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user