Commit 77a3603
committed
Merge bitcoin/bitcoin#26551: p2p: Track orphans by who provided them
c58c249 net_processing: indicate more work to do when orphans are ready to reconsider (Anthony Towns)
ecb0a3e net_processing: Don't process tx after processing orphans (Anthony Towns)
c583775 net_processing: only process orphans before messages (Anthony Towns)
be23046 txorphange: Drop redundant originator arg from GetTxToReconsider (Anthony Towns)
a4fe099 txorphanage: index workset by originating peer (Anthony Towns)
Pull request description:
We currently process orphans by assigning them to the peer that provided a missing parent; instead assign them to the peer that provided the orphan in the first place. This prevents a peer from being able to marginally delay another peer's transactions and also simplifies the internal API slightly. Because we're now associating orphan processing with the peer that provided the orphan originally, we no longer process orphans immediately after receiving the parent, but defer until a future call to `ProcessMessage`.
Based on #26295
ACKs for top commit:
naumenkogs:
utACK c58c249
glozow:
ACK c58c249
mzumsande:
Code Review ACK c58c249
Tree-SHA512: 3186c346f21e60440266a2a80a9d23d7b96071414e14b2b3bfe50457c04c18b1eab109c3d8c2a7726a6b10a2eda1f0512510a52c102da112820a26f5d96f12deFile tree
4 files changed
+57
-49
lines changed- src
- test/fuzz
4 files changed
+57
-49
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
588 | | - | |
589 | | - | |
590 | | - | |
591 | | - | |
| 587 | + | |
| 588 | + | |
| 589 | + | |
| 590 | + | |
| 591 | + | |
| 592 | + | |
| 593 | + | |
592 | 594 | | |
593 | 595 | | |
594 | | - | |
| 596 | + | |
| 597 | + | |
595 | 598 | | |
596 | 599 | | |
597 | 600 | | |
| |||
2897 | 2900 | | |
2898 | 2901 | | |
2899 | 2902 | | |
2900 | | - | |
| 2903 | + | |
2901 | 2904 | | |
2902 | 2905 | | |
2903 | | - | |
2904 | | - | |
2905 | 2906 | | |
2906 | | - | |
| 2907 | + | |
2907 | 2908 | | |
2908 | 2909 | | |
2909 | 2910 | | |
2910 | 2911 | | |
2911 | 2912 | | |
2912 | 2913 | | |
2913 | 2914 | | |
2914 | | - | |
| 2915 | + | |
2915 | 2916 | | |
2916 | 2917 | | |
2917 | 2918 | | |
2918 | 2919 | | |
2919 | | - | |
| 2920 | + | |
2920 | 2921 | | |
2921 | 2922 | | |
2922 | 2923 | | |
2923 | 2924 | | |
2924 | | - | |
| 2925 | + | |
2925 | 2926 | | |
2926 | 2927 | | |
2927 | | - | |
| 2928 | + | |
2928 | 2929 | | |
2929 | 2930 | | |
2930 | 2931 | | |
| |||
2959 | 2960 | | |
2960 | 2961 | | |
2961 | 2962 | | |
2962 | | - | |
| 2963 | + | |
2963 | 2964 | | |
2964 | 2965 | | |
2965 | 2966 | | |
2966 | | - | |
| 2967 | + | |
2967 | 2968 | | |
2968 | 2969 | | |
2969 | 2970 | | |
| |||
4033 | 4034 | | |
4034 | 4035 | | |
4035 | 4036 | | |
4036 | | - | |
| 4037 | + | |
4037 | 4038 | | |
4038 | 4039 | | |
4039 | 4040 | | |
| |||
4045 | 4046 | | |
4046 | 4047 | | |
4047 | 4048 | | |
4048 | | - | |
4049 | | - | |
4050 | | - | |
4051 | 4049 | | |
4052 | 4050 | | |
4053 | 4051 | | |
| |||
4856 | 4854 | | |
4857 | 4855 | | |
4858 | 4856 | | |
4859 | | - | |
4860 | | - | |
4861 | | - | |
4862 | | - | |
4863 | | - | |
| 4857 | + | |
4864 | 4858 | | |
4865 | 4859 | | |
4866 | 4860 | | |
4867 | 4861 | | |
4868 | | - | |
| 4862 | + | |
4869 | 4863 | | |
4870 | 4864 | | |
4871 | 4865 | | |
| |||
4911 | 4905 | | |
4912 | 4906 | | |
4913 | 4907 | | |
| 4908 | + | |
| 4909 | + | |
| 4910 | + | |
| 4911 | + | |
| 4912 | + | |
| 4913 | + | |
4914 | 4914 | | |
4915 | 4915 | | |
4916 | 4916 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | | - | |
94 | | - | |
95 | | - | |
96 | | - | |
97 | | - | |
| 92 | + | |
| 93 | + | |
98 | 94 | | |
99 | 95 | | |
100 | 96 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
145 | 145 | | |
146 | 146 | | |
147 | 147 | | |
148 | | - | |
| 148 | + | |
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
153 | | - | |
154 | 152 | | |
155 | 153 | | |
156 | 154 | | |
157 | 155 | | |
158 | 156 | | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
159 | 161 | | |
160 | 162 | | |
161 | 163 | | |
| |||
172 | 174 | | |
173 | 175 | | |
174 | 176 | | |
175 | | - | |
| 177 | + | |
176 | 178 | | |
177 | 179 | | |
178 | 180 | | |
| |||
185 | 187 | | |
186 | 188 | | |
187 | 189 | | |
188 | | - | |
189 | | - | |
190 | 190 | | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
194 | | - | |
195 | 194 | | |
196 | 195 | | |
197 | 196 | | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
198 | 209 | | |
199 | 210 | | |
200 | 211 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
35 | 33 | | |
36 | | - | |
| 34 | + | |
37 | 35 | | |
38 | 36 | | |
39 | 37 | | |
| |||
47 | 45 | | |
48 | 46 | | |
49 | 47 | | |
50 | | - | |
51 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
52 | 53 | | |
53 | 54 | | |
54 | 55 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
75 | | - | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
0 commit comments