diff options
author | Ava Chow <github@achow101.com> | 2024-05-08 18:04:19 -0400 |
---|---|---|
committer | Ava Chow <github@achow101.com> | 2024-05-08 18:04:19 -0400 |
commit | 573f6311658a7ef5b84a08c6aedeab35d2ac7956 (patch) | |
tree | 67378d2ec2f1b3e0f0db2944e070103996b8b41d /test | |
parent | 4ff42762fdbef983a886e5eb63cf21f7108fe78b (diff) | |
parent | 75d27fefc7a04ebdda7be5724a014b6a896e7325 (diff) | |
download | bitcoin-573f6311658a7ef5b84a08c6aedeab35d2ac7956.tar.xz |
Merge bitcoin/bitcoin#26326: net: don't lock cs_main while reading blocks in net processing
75d27fefc7a04ebdda7be5724a014b6a896e7325 net: reduce LOCK(cs_main) scope in ProcessGetBlockData (Andrew Toth)
613a45cd4b5482aedbdc7c61c839ea05996935c6 net: reduce LOCK(cs_main) scope in GETBLOCKTXN (Andrew Toth)
Pull request description:
Inspired by https://github.com/bitcoin/bitcoin/pull/11913 and https://github.com/bitcoin/bitcoin/pull/26308.
`cs_main` doesn't need to be locked while reading blocks. This removes the locks in `net_processing`.
ACKs for top commit:
sr-gi:
ACK [75d27fe](https://github.com/bitcoin/bitcoin/pull/26326/commits/75d27fefc7a04ebdda7be5724a014b6a896e7325)
achow101:
ACK 75d27fefc7a04ebdda7be5724a014b6a896e7325
furszy:
ACK 75d27fefc with a non-blocking nit.
mzumsande:
Code Review ACK 75d27fefc7a04ebdda7be5724a014b6a896e7325
TheCharlatan:
ACK 75d27fefc7a04ebdda7be5724a014b6a896e7325
Tree-SHA512: 79b85f748f68ecfb2f2afd3267857dd41b8e76dd482c9c922037399dcbce7b1e5d4c708a4f5fd17c3fb6699b0d88f26a17cc1d92db115dd43c8d4392ae27cec4
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions