From 5fb2b704897fe10b5bd5ed754a5afd2ddc4a9e1d Mon Sep 17 00:00:00 2001 From: Sjors Provoost Date: Wed, 26 Jun 2024 12:27:06 +0200 Subject: Drop unneeded lock from createNewBlock This was added in 4bf2e361da1964f7c278b4939967a0e5afde20b0, but BlockAssembler::CreateNewBlock already locks cs_main internally. --- src/node/interfaces.cpp | 1 - 1 file changed, 1 deletion(-) (limited to 'src/node') diff --git a/src/node/interfaces.cpp b/src/node/interfaces.cpp index 931b98e59c..5e87bf234a 100644 --- a/src/node/interfaces.cpp +++ b/src/node/interfaces.cpp @@ -881,7 +881,6 @@ public: BlockAssembler::Options options; ApplyArgsManOptions(gArgs, options); - LOCK(::cs_main); return BlockAssembler{chainman().ActiveChainstate(), use_mempool ? context()->mempool.get() : nullptr, options}.CreateNewBlock(script_pub_key); } -- cgit v1.2.3