diff options
author | Sjors Provoost <sjors@sprovoost.nl> | 2024-06-26 12:27:06 +0200 |
---|---|---|
committer | Sjors Provoost <sjors@sprovoost.nl> | 2024-06-27 08:56:20 +0200 |
commit | 5fb2b704897fe10b5bd5ed754a5afd2ddc4a9e1d (patch) | |
tree | 610d5677bf40867f892ceb0c5e94969ba1ba825b /src/node | |
parent | 75ce7637ad75af890581660c0bb3565c3c03bd6c (diff) |
Drop unneeded lock from createNewBlock
This was added in 4bf2e361da1964f7c278b4939967a0e5afde20b0, but
BlockAssembler::CreateNewBlock already locks cs_main internally.
Diffstat (limited to 'src/node')
-rw-r--r-- | src/node/interfaces.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
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); } |