mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-02 09:46:52 -05:00
Drop unneeded lock from createNewBlock
This was added in 4bf2e361da
, but
BlockAssembler::CreateNewBlock already locks cs_main internally.
This commit is contained in:
parent
75ce7637ad
commit
5fb2b70489
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue