From 23fc17753fc56405836dafed4e238e5ac3d4a5b2 Mon Sep 17 00:00:00 2001 From: pasta Date: Sat, 15 Nov 2025 00:05:03 -0600 Subject: [PATCH] fix: remove unnecessary lock in bad sources processing --- src/instantsend/net_instantsend.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/instantsend/net_instantsend.cpp b/src/instantsend/net_instantsend.cpp index ecb81b6a5edb..f4eeb5300ce5 100644 --- a/src/instantsend/net_instantsend.cpp +++ b/src/instantsend/net_instantsend.cpp @@ -168,7 +168,6 @@ Uint256HashSet NetInstantSend::ProcessPendingInstantSendLocks( Uint256HashSet badISLocks; if (ban && !batchVerifier.badSources.empty()) { - LOCK(::cs_main); for (const auto& nodeId : batchVerifier.badSources) { // Let's not be too harsh, as the peer might simply be unlucky and might have sent us an old lock which // does not validate anymore due to changed quorums