diff --git a/src/instantx.cpp b/src/instantx.cpp index 484d43dd8021b..0f7ddba7dd2fa 100644 --- a/src/instantx.cpp +++ b/src/instantx.cpp @@ -485,7 +485,7 @@ void CleanTransactionLocksList() int nHeight = chainActive.Height(); while(it != mapTxLocks.end()) { CTransactionLock &txLock = it->second; - if(GetTime() > txLock.nLockExpirationBlock) { + if(nHeight > txLock.nLockExpirationBlock) { LogPrintf("Removing old transaction lock: txid=%s\n", txLock.txHash.ToString()); if(mapTxLockReq.count(txLock.txHash)){