Skip to content

Commit 5fb2b70

Browse files
committed
Drop unneeded lock from createNewBlock
This was added in 4bf2e36, but BlockAssembler::CreateNewBlock already locks cs_main internally.
1 parent 75ce763 commit 5fb2b70

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/node/interfaces.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,6 @@ class MinerImpl : public Mining
881881
BlockAssembler::Options options;
882882
ApplyArgsManOptions(gArgs, options);
883883

884-
LOCK(::cs_main);
885884
return BlockAssembler{chainman().ActiveChainstate(), use_mempool ? context()->mempool.get() : nullptr, options}.CreateNewBlock(script_pub_key);
886885
}
887886

0 commit comments

Comments
 (0)