remove magic number: change threshold for nLockTime to constant

This commit is contained in:
Wladimir J. van der Laan committed 2011-07-09 10:30:23 +02:00
1 parent 460cd40aa5
commit 2eace48d9a
2 files changed
+4 -2

No files matched your search

+1 -1
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;