HomePhabricator

Clarify that m_tx_relay and m_proof_relay are thread safe

Tags
  • Restricted Project
Subscribers
None
Tokens
"Pterodactyl" token, awarded by Unknown Object (User).

Description

Clarify that m_tx_relay and m_proof_relay are thread safe

Summary: They CNode members are set once at construction time and then read only, but this is unclear because they are not declared const. This diff makes them const so this is clear they are thread safe.

Test Plan:

ninja all check-all

../contrib/teamcity/build-configurations.py build-tsan

Reviewers: #bitcoin_abc, deadalnix

Reviewed By: #bitcoin_abc, deadalnix

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

Details

Provenance
FabienAuthored on Jun 2 2022, 09:14
FabienPushed on Jun 2 2022, 13:24
Reviewer
Restricted Project
Differential Revision
D11556: Clarify that m_tx_relay and m_proof_relay are thread safe
Parents
rABC35e5f7f4dac2: [Cashtab] Fix unit tests
Branches
Unknown
Tags
Unknown
Tasks
T2935: Build Bitcoin-ABC / Master / Native tests / Test Native OSX is broken.

Event Timeline

Unknown Object (User) awarded a token.
Unknown Object (User) added a subscriber: Unknown Object (User).
Unknown Object (User) added a project: Restricted Project.Feb 15 2023, 04:21