Page MenuHomePhabricator

[avalanche] Clarify locking expectation in GetAvalancheVoteForTx
ClosedPublic

Authored by Fabien on Aug 21 2025, 09:38.

Details

Summary

Also release the cs_main lock when calling isPolled to avoid a lock order inversion between the RWLock for voteRecords and cs_main.

Test Plan

Run the abc_p2p_avalanche_transaction_finalization.py test with TSAN

Diff Detail

Repository
rABC Bitcoin ABC
Branch
avalanche_fix_txvote_deadlock
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 34198
Build 67864: Build Diffbuild-debug · build-without-wallet · lint-circular-dependencies · build-clang · build-clang-tidy · build-diff
Build 67863: arc lint + arc unit