This change was motivated by #32592 (review)
It does exactly what is said in the comment. Reducing the scope of the lock by a bit before it is needed
This change was motivated by #32592 (review)
It does exactly what is said in the comment. Reducing the scope of the lock by a bit before it is needed
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
For details see: https://corecheck.dev/bitcoin/bitcoin/pulls/33264.
See the guideline for information on the review process.
Type | Reviewers |
---|---|
ACK | stickies-v, maflcko |
If your review is incorrectly listed, please react with 👎 to this comment and the bot will ignore it on the next update.
731@@ -734,6 +732,7 @@ static RPCHelpMan getblocktemplate()
732 if (!DecodeHexBlk(block, dataval.get_str()))
733 throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Block decode failed");
734
735+ LOCK(cs_main);