We could take a lock on cs_main to do the modification here, but it's better to just set the mock time prior to mining the block in the first place.
Details
Details
- Reviewers
Fabien - Group Reviewers
Restricted Owners Package (Owns No Changed Paths) Restricted Project - Commits
- rABCd74a3bd8a0e8: [avalanche] Do not modify the chaintip in stake contender test
This does not replicate on my machine but it should fix the CI TSAN failure:
https://build.bitcoinabc.org/buildConfiguration/BitcoinABC_ResourceIntensiveBuilds_BitcoinAbcMasterTsan/853976?buildTab=log&linesState=91&logView=flowAware&focusLine=2282
cmake -GNinja .. -DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_BUILD_TYPE=Debug -DENABLE_SANITIZERS=thread ninja check-avalanche-processor_tests
Diff Detail
Diff Detail
- Repository
- rABC Bitcoin ABC
- Branch
- sw-tsan
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 31207 Build 61914: Build Diff lint-circular-dependencies · build-without-wallet · build-diff · build-debug · build-clang-tidy · build-clang Build 61913: arc lint + arc unit
Event Timeline
src/avalanche/test/processor_tests.cpp | ||
---|---|---|
2454 ↗ | (On Diff #50960) | You should take the lock only once here ? Move the call into the below scoped lock |