HomePhabricator

Fix a race in validationinterface_tests

Description

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

Reviewers: #bitcoin_abc, PiRK

Reviewed By: #bitcoin_abc, PiRK

Differential Revision: https://reviews.bitcoinabc.org/D15199

Details

Provenance
FabienAuthored on Jan 18 2024, 15:19
FabienPushed on Jan 19 2024, 08:22
Reviewer
Restricted Project
Differential Revision
D15199: Fix a race in validationinterface_tests
Parents
rABCf9deb6ee1f14: [Cashtab] Add more wallet helper functions
Branches
Unknown
Tags
Unknown