Commit a0d1d48
committed
Merge bitcoin#21845: net processing: Don't require locking cs_main before calling RelayTransactions()
39e1971 [net processing] Add internal _RelayTransactions() (John Newbery)
Pull request description:
As part of the general effort to reduce cs_main usage in net_processing, this removes the need to be holding `cs_main` when calling `RelayTransactions()` from outside net_processing. Internally, we lock `cs_main` and call an internal `_RelayTransactions()` function that _does_ require `cs_main`.
ACKs for top commit:
MarcoFalke:
re-unsigned-code-review ACK 39e1971
promag:
Code review ACK 39e1971, just included sync.h since last review.
ajtowns:
ACK 39e1971
Tree-SHA512: dc08441233adfb8eaac501cf497cb4bad029eb723bd3fa8a3d8b7e49cc984c98859b95780ad15f5701d62ac745a8223beb0df405e3d49d95a8c86c8be17c95433 files changed
+14
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
| |||
256 | 257 | | |
257 | 258 | | |
258 | 259 | | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
259 | 263 | | |
260 | 264 | | |
261 | 265 | | |
| |||
1015 | 1019 | | |
1016 | 1020 | | |
1017 | 1021 | | |
1018 | | - | |
| 1022 | + | |
1019 | 1023 | | |
1020 | 1024 | | |
1021 | 1025 | | |
| |||
1511 | 1515 | | |
1512 | 1516 | | |
1513 | 1517 | | |
| 1518 | + | |
| 1519 | + | |
| 1520 | + | |
| 1521 | + | |
| 1522 | + | |
1514 | 1523 | | |
1515 | 1524 | | |
1516 | 1525 | | |
| |||
2087 | 2096 | | |
2088 | 2097 | | |
2089 | 2098 | | |
2090 | | - | |
| 2099 | + | |
2091 | 2100 | | |
2092 | 2101 | | |
2093 | 2102 | | |
| |||
3055 | 3064 | | |
3056 | 3065 | | |
3057 | 3066 | | |
3058 | | - | |
| 3067 | + | |
3059 | 3068 | | |
3060 | 3069 | | |
3061 | 3070 | | |
| |||
3070 | 3079 | | |
3071 | 3080 | | |
3072 | 3081 | | |
3073 | | - | |
| 3082 | + | |
3074 | 3083 | | |
3075 | 3084 | | |
3076 | 3085 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
19 | | - | |
20 | 17 | | |
21 | 18 | | |
22 | 19 | | |
| |||
49 | 46 | | |
50 | 47 | | |
51 | 48 | | |
52 | | - | |
53 | | - | |
| 49 | + | |
54 | 50 | | |
55 | 51 | | |
56 | 52 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
103 | | - | |
104 | | - | |
105 | 103 | | |
106 | 104 | | |
107 | 105 | | |
| |||
0 commit comments