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
Lint
Lint Not Applicable
Unit
Tests Not Applicable