Commit 8e191eb
committed
Merge #7303: refactor: drop dependency of spork manager on network code
4e6f844 refactor: collapse spork signer recovery to one ECDSA op, restore peer info in logs (UdjinM6)
6a4ee52 fix: replace assert to if-return. Less probability to get troubles in the future (Konstantin Akimov)
7460211 refactor: address review feedback on spork ProcessMessage refactor (UdjinM6)
7c899a2 refactor: drop dependency of spork manager on network code (Konstantin Akimov)
bd2bff1 refactor: move network implementation of spork to net_processing (Konstantin Akimov)
Pull request description:
## Issue being fixed or feature implemented
It helps to break circular dependencies over spork <-> net.
It helps to get spork manager ready kernel project.
Apparantly, chainstate implementation uses sporks for validation of blockchain but network dependencies could be avoided there.
This changes is PR-ready changes from #7234 for spork manager.
## What was done?
Dropped dependency of spork manager on network code by moving network code to net_processing.
There's no need dedicated NetHandler because imlementation is trivial, short and doesn't have any async worker or threads.
## How Has This Been Tested?
Run unit & functional tests.
## Breaking Changes
N/A
## Checklist:
- [x] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have added or updated relevant unit/integration/functional/e2e tests
- [ ] I have made corresponding changes to the documentation
- [x] I have assigned this pull request to a milestone
ACKs for top commit:
PastaPastaPasta:
utACK 4e6f844
Tree-SHA512: 5b06e49c716cf66b66ffe9902fa0f987d0492236b87c45eb285d30def49a2bc66f8ef21b0ae4372465de4598b02f17605c5e127bab79bf2f35c83f0e819b7caf4 files changed
Lines changed: 63 additions & 65 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5462 | 5462 | | |
5463 | 5463 | | |
5464 | 5464 | | |
| 5465 | + | |
| 5466 | + | |
| 5467 | + | |
| 5468 | + | |
| 5469 | + | |
| 5470 | + | |
| 5471 | + | |
| 5472 | + | |
| 5473 | + | |
| 5474 | + | |
| 5475 | + | |
| 5476 | + | |
| 5477 | + | |
| 5478 | + | |
| 5479 | + | |
| 5480 | + | |
| 5481 | + | |
| 5482 | + | |
| 5483 | + | |
| 5484 | + | |
| 5485 | + | |
| 5486 | + | |
| 5487 | + | |
| 5488 | + | |
| 5489 | + | |
| 5490 | + | |
| 5491 | + | |
| 5492 | + | |
| 5493 | + | |
5465 | 5494 | | |
5466 | 5495 | | |
5467 | 5496 | | |
| |||
5508 | 5537 | | |
5509 | 5538 | | |
5510 | 5539 | | |
5511 | | - | |
5512 | 5540 | | |
5513 | 5541 | | |
5514 | 5542 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | 7 | | |
| 8 | + | |
11 | 9 | | |
12 | 10 | | |
13 | 11 | | |
14 | | - | |
15 | | - | |
16 | 12 | | |
17 | 13 | | |
18 | 14 | | |
| 15 | + | |
19 | 16 | | |
20 | 17 | | |
21 | 18 | | |
| |||
126 | 123 | | |
127 | 124 | | |
128 | 125 | | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 126 | + | |
140 | 127 | | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 128 | | |
150 | | - | |
151 | | - | |
152 | | - | |
| 129 | + | |
| 130 | + | |
153 | 131 | | |
154 | 132 | | |
155 | 133 | | |
156 | 134 | | |
157 | 135 | | |
158 | | - | |
159 | | - | |
160 | | - | |
| 136 | + | |
| 137 | + | |
161 | 138 | | |
| 139 | + | |
| 140 | + | |
162 | 141 | | |
163 | | - | |
164 | | - | |
165 | | - | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
166 | 147 | | |
167 | 148 | | |
168 | 149 | | |
169 | 150 | | |
170 | 151 | | |
171 | 152 | | |
172 | 153 | | |
173 | | - | |
| 154 | + | |
174 | 155 | | |
175 | 156 | | |
176 | 157 | | |
| |||
191 | 172 | | |
192 | 173 | | |
193 | 174 | | |
194 | | - | |
195 | | - | |
| 175 | + | |
196 | 176 | | |
197 | 177 | | |
198 | | - | |
| 178 | + | |
199 | 179 | | |
200 | 180 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
| 181 | + | |
206 | 182 | | |
207 | 183 | | |
208 | | - | |
209 | 184 | | |
210 | 185 | | |
211 | 186 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | 8 | | |
11 | 9 | | |
12 | | - | |
13 | | - | |
14 | 10 | | |
15 | 11 | | |
16 | 12 | | |
17 | | - | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | | - | |
26 | 20 | | |
27 | 21 | | |
28 | | - | |
29 | 22 | | |
| 23 | + | |
| 24 | + | |
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
| |||
249 | 244 | | |
250 | 245 | | |
251 | 246 | | |
252 | | - | |
| 247 | + | |
| 248 | + | |
| 249 | + | |
253 | 250 | | |
254 | | - | |
255 | | - | |
256 | | - | |
| 251 | + | |
| 252 | + | |
257 | 253 | | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
262 | 258 | | |
263 | | - | |
| 259 | + | |
| 260 | + | |
264 | 261 | | |
265 | 262 | | |
266 | 263 | | |
267 | | - | |
268 | | - | |
269 | | - | |
| 264 | + | |
| 265 | + | |
270 | 266 | | |
271 | | - | |
| 267 | + | |
272 | 268 | | |
273 | 269 | | |
274 | 270 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| |||
0 commit comments