From 55837914e3cd370bb2a7d3724ffadda0f5a8239e Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Thu, 3 Dec 2020 18:59:04 +0300 Subject: [PATCH] IsTxSafeForMining should not fail if ChainLocks are enabled but not enforced --- src/llmq/quorums_chainlocks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/llmq/quorums_chainlocks.cpp b/src/llmq/quorums_chainlocks.cpp index 6a36a73b4eaa..edbe36e92755 100644 --- a/src/llmq/quorums_chainlocks.cpp +++ b/src/llmq/quorums_chainlocks.cpp @@ -469,7 +469,7 @@ bool CChainLocksHandler::IsTxSafeForMining(const uint256& txid) int64_t txAge = 0; { LOCK(cs); - if (!isSporkActive) { + if (!isSporkActive || !isEnforced) { return true; } auto it = txFirstSeenTime.find(txid);