diff options
author | Ava Chow <github@achow101.com> | 2024-09-13 15:40:43 -0400 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-09-13 15:40:43 -0400 |
commit | 71af7435ef934a29d854bbe23c0e8602730ebe10 (patch) | |
tree | 2a6b46c1e76e7fb4a3f05a86eceb217ac2f1034a /test/functional/p2p-timeouts.py | |
parent | 1d5b2406bb9ce619219a3b76608bd764a3b162c3 (diff) | |
parent | 07f4cebe5780f1039541d989e64b70eccc5b4eb5 (diff) |
Merge bitcoin/bitcoin#30233: refactor: move m_is_inbound out of CNodeState
07f4cebe5780f1039541d989e64b70eccc5b4eb5 refactor: move m_is_inbound out of CNodeState (Sergi Delgado Segura)
Pull request description:
`m_is_inbound` cannot be changed throughout the life of a `Peer`. However, we are currently storing it in `CNodeState`, which requires locking `cs_main` in order to access it. This can be moved to the outside scope and only require `m_peer_mutex`.
This is a refactor in preparation for Erlay reworks.
ACKs for top commit:
maflcko:
ACK 07f4cebe5780f1039541d989e64b70eccc5b4eb5 🗞
achow101:
ACK 07f4cebe5780f1039541d989e64b70eccc5b4eb5
marcofleon:
ACK 07f4cebe5780f1039541d989e64b70eccc5b4eb5
naumenkogs:
ACK 07f4cebe5780f1039541d989e64b70eccc5b4eb5
Tree-SHA512: bcc77135646c697204a4605971774cb3ccdf11b3e363a7339bfb4d1678de1681d6ca642dc467f7d71834a94dd56e05367e7fd32a3e6dc6be30c89342f39bf695
Diffstat (limited to 'test/functional/p2p-timeouts.py')
0 files changed, 0 insertions, 0 deletions