This fixes a lock order inversion cs_main => voteRecords => cs_main.
We can't call addToReconcile with cs_main hold.
Unfortunately annotating for !cs_main everywhere is not really practicable as it would propagate to all callsites recursively.
Differential D16776
[avalanche] Fix a lock-order issue when adding a tx to the poll Fabien on Sep 18 2024, 09:12. Authored by Tags None Subscribers None
Details
This fixes a lock order inversion cs_main => voteRecords => cs_main. Unfortunately annotating for !cs_main everywhere is not really practicable as it would propagate to all callsites recursively. ./contrib/teamcity/build-configurations.py build-tsan
Diff Detail
|