Skip to content

Commit 23fc177

Browse files
fix: remove unnecessary lock in bad sources processing
1 parent f45e47d commit 23fc177

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/instantsend/net_instantsend.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,6 @@ Uint256HashSet NetInstantSend::ProcessPendingInstantSendLocks(
168168
Uint256HashSet badISLocks;
169169

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

0 commit comments

Comments
 (0)