Commit 9f1474c
committed
fix(fault-proof): align catch-up head selection with upstream PR succinctlabs#927
Upstream replaced succinctlabs#926 with succinctlabs#927, adding two increments on top of the
same core selection logic:
- Emit a tracing::debug! when the canonical head is chosen from a
catch-up chain outside the anchor subtree, so operators can tell the
proposer is recovering on a non-descendant lineage.
- Cover the multi-chain case in a new unit test
(multiple_catchup_chains_select_highest_tip): after repeated
stall/recovery cycles, several genesis-rooted catch-up chains can sit
in the cache, and the head must be the highest tip pooled across all
of them, not the tip of the chain whose root sits highest.1 parent 1945d71 commit 9f1474c
1 file changed
Lines changed: 30 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
276 | 286 | | |
277 | 287 | | |
278 | 288 | | |
| |||
2777 | 2787 | | |
2778 | 2788 | | |
2779 | 2789 | | |
| 2790 | + | |
| 2791 | + | |
| 2792 | + | |
| 2793 | + | |
| 2794 | + | |
| 2795 | + | |
| 2796 | + | |
| 2797 | + | |
| 2798 | + | |
| 2799 | + | |
| 2800 | + | |
| 2801 | + | |
| 2802 | + | |
| 2803 | + | |
| 2804 | + | |
| 2805 | + | |
| 2806 | + | |
| 2807 | + | |
| 2808 | + | |
| 2809 | + | |
2780 | 2810 | | |
2781 | 2811 | | |
2782 | 2812 | | |
| |||
0 commit comments