remove magic number: change threshold for nLockTime to constant

This commit is contained in:
Wladimir J. van der Laan
2011-07-09 10:26:46 +02:00
parent 460cd40aa5
commit 2eace48d9a
2 changed files with 4 additions and 2 deletions

View File

@@ -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;