Commit 781398d
authored
refactor(blockchain): group on_tick conditionals by interval (lambdaclass#450)
Split out of lambdaclass#445 (proposer pre-build). **Stacked on lambdaclass#449**
(`gate_proposer` removal) — review/merge that first; this PR's base
retargets to `main` once lambdaclass#449 lands.
`on_tick` ran its per-interval blocks out of order (interval-4 snapshot,
then tick, then 2, 0, 1). This regroups them into ascending interval
order behind `==== interval N ====` markers so the slot timeline reads
top-to-bottom and lines up with the duty schedule.
**Pure reorder, behavior unchanged.**
### One block intentionally does *not* move
The interval-4 `new_payloads` snapshot stays **ahead** of
`store::on_tick`. At interval 4 the tick runs `accept_new_attestations →
promote_new_aggregated_payloads()`, which drains `new_payloads`;
snapshotting after the tick would capture an already-drained set and
silently break the post-block coverage report's "timely" cohort. A
comment now pins that ordering constraint.
> Note: commit `7474c15` on lambdaclass#445 currently moves this snapshot *into*
the post-tick interval-4 group, which hits exactly that regression
(observability-only, so devnet doesn't surface it). lambdaclass#445 should adopt
this PR's placement when it rebases.1 parent 1439b2d commit 781398d
1 file changed
Lines changed: 37 additions & 31 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
230 | 230 | | |
231 | 231 | | |
232 | 232 | | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
241 | | - | |
242 | | - | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 233 | + | |
247 | 234 | | |
248 | 235 | | |
249 | 236 | | |
| |||
262 | 249 | | |
263 | 250 | | |
264 | 251 | | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
265 | 257 | | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
| 258 | + | |
271 | 259 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
279 | 266 | | |
280 | | - | |
| 267 | + | |
281 | 268 | | |
282 | 269 | | |
283 | 270 | | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
| 271 | + | |
288 | 272 | | |
289 | 273 | | |
290 | 274 | | |
| |||
309 | 293 | | |
310 | 294 | | |
311 | 295 | | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
312 | 318 | | |
313 | 319 | | |
314 | 320 | | |
| |||
0 commit comments