Commit c5a63ea
committed
Merge bitcoin/bitcoin#27944: test: various USDT functional test cleanups (27831 follow-ups)
9f55773 test: refactor: usdt_mempool: store all events (stickies-v)
bc43270 test: refactor: remove unnecessary nonlocal (stickies-v)
326db63 test: log sanity check assertion failures (stickies-v)
f5525ad test: store utxocache events (stickies-v)
f1b99ac test: refactor: deduplicate handle_utxocache_* logic (stickies-v)
ad90ba3 test: refactor: rename inbound to is_inbound (stickies-v)
afc0224 test: refactor: remove unnecessary blocks_checked counter (stickies-v)
Pull request description:
Various cleanups to the USDT functional tests, largely (but not exclusively) follow-ups to bitcoin/bitcoin#27831 (review). Except for slightly different logging behaviour in "test: store utxocache events" and "test: log sanity check assertion failures", this is a refactor PR, removing unnecessary code and (imo) making it more readable and maintainable.
The rationale for each change is in the corresponding commit message.
Note: except for "test: store utxocache events" (which relies on its parent, and I separated into two commits because we may want the parent but not the child), all commits are stand-alone and I'm okay with dropping one/multiple commits if they turn out to be controversial or undesired.
ACKs for top commit:
0xB10C:
ACK 9f55773. Reviewed the code and ran the USDT interface tests. I stepped through the commits and think all changes are reasonable.
Tree-SHA512: 6c37a0265b6c26d4f9552a056a690b8f86f7304bd33b4419febd8b17369cf6af799cb87c16df35d0c2a1b839ad31de24661d4384eafa88816c2051c522fd3bf5File tree
4 files changed
+51
-77
lines changed- test/functional
4 files changed
+51
-77
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 140 | + | |
143 | 141 | | |
144 | 142 | | |
145 | 143 | | |
| |||
148 | 146 | | |
149 | 147 | | |
150 | 148 | | |
151 | | - | |
152 | | - | |
153 | | - | |
| 149 | + | |
154 | 150 | | |
155 | 151 | | |
156 | 152 | | |
| |||
165 | 161 | | |
166 | 162 | | |
167 | 163 | | |
168 | | - | |
| 164 | + | |
| 165 | + | |
169 | 166 | | |
170 | 167 | | |
171 | 168 | | |
| |||
177 | 174 | | |
178 | 175 | | |
179 | 176 | | |
180 | | - | |
181 | | - | |
182 | | - | |
| 177 | + | |
183 | 178 | | |
184 | 179 | | |
185 | 180 | | |
| |||
188 | 183 | | |
189 | 184 | | |
190 | 185 | | |
191 | | - | |
192 | | - | |
193 | | - | |
| 186 | + | |
194 | 187 | | |
195 | 188 | | |
196 | 189 | | |
| |||
212 | 205 | | |
213 | 206 | | |
214 | 207 | | |
215 | | - | |
| 208 | + | |
| 209 | + | |
216 | 210 | | |
217 | 211 | | |
218 | 212 | | |
| |||
226 | 220 | | |
227 | 221 | | |
228 | 222 | | |
229 | | - | |
230 | | - | |
231 | | - | |
| 223 | + | |
232 | 224 | | |
233 | 225 | | |
234 | 226 | | |
| |||
237 | 229 | | |
238 | 230 | | |
239 | 231 | | |
240 | | - | |
241 | | - | |
242 | | - | |
| 232 | + | |
243 | 233 | | |
244 | 234 | | |
245 | 235 | | |
| |||
261 | 251 | | |
262 | 252 | | |
263 | 253 | | |
264 | | - | |
| 254 | + | |
| 255 | + | |
265 | 256 | | |
266 | 257 | | |
267 | 258 | | |
| |||
277 | 268 | | |
278 | 269 | | |
279 | 270 | | |
280 | | - | |
281 | | - | |
282 | | - | |
| 271 | + | |
283 | 272 | | |
284 | 273 | | |
285 | 274 | | |
| |||
291 | 280 | | |
292 | 281 | | |
293 | 282 | | |
294 | | - | |
295 | | - | |
296 | | - | |
| 283 | + | |
297 | 284 | | |
298 | 285 | | |
299 | 286 | | |
| |||
305 | 292 | | |
306 | 293 | | |
307 | 294 | | |
308 | | - | |
| 295 | + | |
| 296 | + | |
309 | 297 | | |
310 | 298 | | |
311 | 299 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
128 | | - | |
| 128 | + | |
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
136 | | - | |
| 136 | + | |
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
142 | | - | |
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
| |||
157 | 156 | | |
158 | 157 | | |
159 | 158 | | |
160 | | - | |
161 | | - | |
| 159 | + | |
| 160 | + | |
162 | 161 | | |
163 | 162 | | |
164 | 163 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
255 | | - | |
256 | | - | |
257 | 255 | | |
258 | | - | |
259 | 256 | | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
260 | 269 | | |
261 | 270 | | |
262 | | - | |
263 | 271 | | |
264 | 272 | | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
| 273 | + | |
276 | 274 | | |
277 | 275 | | |
278 | | - | |
279 | 276 | | |
280 | 277 | | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | | - | |
290 | | - | |
291 | | - | |
| 278 | + | |
292 | 279 | | |
293 | 280 | | |
294 | 281 | | |
| |||
324 | 311 | | |
325 | 312 | | |
326 | 313 | | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | 314 | | |
332 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
333 | 318 | | |
334 | 319 | | |
335 | 320 | | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
340 | 326 | | |
341 | 327 | | |
342 | 328 | | |
| |||
367 | 353 | | |
368 | 354 | | |
369 | 355 | | |
370 | | - | |
371 | | - | |
372 | | - | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
373 | 363 | | |
374 | 364 | | |
375 | 365 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | 89 | | |
91 | 90 | | |
92 | 91 | | |
| |||
98 | 97 | | |
99 | 98 | | |
100 | 99 | | |
101 | | - | |
102 | 100 | | |
103 | 101 | | |
104 | 102 | | |
105 | | - | |
106 | 103 | | |
107 | 104 | | |
108 | 105 | | |
| |||
127 | 124 | | |
128 | 125 | | |
129 | 126 | | |
130 | | - | |
| 127 | + | |
131 | 128 | | |
132 | 129 | | |
133 | 130 | | |
| |||
0 commit comments