Skip to content

Commit cb1dfa3

Browse files
fix: remove unnecessary lock in bad sources processing
1 parent d3fa315 commit cb1dfa3

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/instantsend/instantsend.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,6 @@ Uint256HashSet CInstantSendManager::ProcessPendingInstantSendLocks(
314314
Uint256HashSet badISLocks;
315315

316316
if (ban && !batchVerifier.badSources.empty()) {
317-
LOCK(::cs_main);
318317
for (const auto& nodeId : batchVerifier.badSources) {
319318
// Let's not be too harsh, as the peer might simply be unlucky and might have sent us an old lock which
320319
// does not validate anymore due to changed quorums

0 commit comments

Comments
 (0)