You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
8d58da5 Resolve misc clang lock annotation warnings. (Zannick)
Pull request description:
### Problem
Building with clang results in lots of warnings about lock annotations not being obeyed.
### Solution
Follow instructions on warnings:
- Replace double lock of cs_main with an assertion.
- Reorganize code to release cs_main before calling blockheaderToJSON.
- Lock cs_main before calling any of: GetBlocksToMaturity, GetAddressBalances, IsSpent, TestBlockValidity.
### Tested
Configured with --with-sanitizers=thread, built with clang, run on regtest.
Tree-SHA512: af09c9c9ec0264dffd3914f8d278604e8d22e8ecc815a1b1586057f48131fe82550a7badf86cfcb6d411509aca003944eda66b6473a32a14d319db9fea57806d
0 commit comments