From d8449aecf907939ec2e4d91e2edbfa85a76c6c26 Mon Sep 17 00:00:00 2001 From: UdjinM6 Date: Mon, 5 Aug 2024 10:27:23 +0300 Subject: [PATCH] fix: stop trying to sign pending txes when they are no longer non-locked --- src/llmq/instantsend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/llmq/instantsend.cpp b/src/llmq/instantsend.cpp index 663a863f3447..037dd2f1f661 100644 --- a/src/llmq/instantsend.cpp +++ b/src/llmq/instantsend.cpp @@ -1202,6 +1202,8 @@ void CInstantSendManager::RemoveNonLockedTx(const uint256& txid, bool retryChild retryChildrenCount++; } } + // don't try to lock it anymore + WITH_LOCK(cs_pendingRetry, pendingRetryTxs.erase(txid)); if (info.tx) { for (const auto& in : info.tx->vin) {