Split out from #19306.
Only trivial thread safety annotations and lock assertions added. No new locks. No behavior change.
This is a step to make CTxMemPool::cs an instance of Mutex rather RecursiveMutex.
Concept ACK: thanks for adding thread-safety annotations!
<!--e57a25ab6845829454e8d69fc972939a-->
The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.
<!--174a7506f384e20aa4161008e828411d-->
Reviewers, this pull request conflicts with the following ones:
If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.
Rebased ef803c32d28d103b548fa5eb18b6faa17c7153cf -> dd427ddc4d3570aa0afbccb10869703366ea6cb1 (pr19652.02 -> pr19652.03) due to the conflict with #19572.
This change avoids locking CTxMemPool::cs recursively in
Mempool{Info}ToJSON() functions.Rebased dd427ddc4d3570aa0afbccb10869703366ea6cb1 -> 09b1ef2262e72e708b71a3e70948f8a42ceb1030 (pr19652.03 -> pr19652.04) due to the conflict with #18766.
<!--cf906140f33d8803c4a75a2196329ecb-->
🐙 This pull request conflicts with the target branch and needs rebase.
<sub>Want to unsubscribe from rebase notifications on this pull request? Just convert this pull request to a "draft".</sub>