Page MenuHomePhabricator

Fix a missing lock when accessing the block status
ClosedPublic

Authored by Fabien on Jan 18 2023, 09:25.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC385822354ff7: Fix a missing lock when accessing the block status
Summary

The status is changed in the validation task, so we need to hold cs_main when accessing from the avalanche event loop.
Introduced in D12986.

Test Plan
../contrib/teamcity/build-configurations.py build-tsan

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable