Page MenuHomePhabricator

Move CheckBlock() call to critical section
ClosedPublic

Authored by Fabien on Jul 9 2019, 12:40.

Details

Summary
This prevents data race for CBlock::fChecked.

Backport of core PR14841
https://github.com/bitcoin/bitcoin/pull/14841/files

Test Plan

With TSAN enabled:

./src/test/test_bitcoin -t validation_block_tests

Diff Detail

Repository
rABC Bitcoin ABC
Branch
PR14841
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 6755
Build 11557: Bitcoin ABC Buildbot (legacy)
Build 11556: arc lint + arc unit