Page MenuHomePhabricator

Fix a race in validationinterface_tests
ClosedPublic

Authored by Fabien on Jan 18 2024, 15:20.

Details

Reviewers
PiRK
Group Reviewers
Restricted Project
Commits
rABC6ba1c1b97563: Fix a race in validationinterface_tests
Summary

Since the block_finalized callback now runs in the scheduler thread, the test is racy as there is concurrent access to the test variables. This diff simplify the test and fixes the race.

Test Plan

With TSAN:

ninja check-bitcoin

Diff Detail