Commit 053978a
chanmon_consistency: fix bogus channel_reestablish infinite loop
Skip delivery of bogus channel_reestablish messages (those with both
commitment numbers at 0) in the process_msg_events\! macro. These are
generated by the lnd workaround in handle_channel_reestablish's Vacant
branch. When both nodes have forgotten a channel, delivering these
between LDK nodes creates an infinite ping-pong that hits the 100
iteration limit in process_all_events\!. All fuzzer nodes are LDK and
will already force-close via the error message path, so skipping these
is safe.
Also batch the drain+confirm+sync loop so that fee-bump re-broadcasts
are confirmed before proceeding, using confirm_tx's return value to
skip already-confirmed transactions.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent baa2540 commit 053978a
1 file changed
Lines changed: 33 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1665 | 1665 | | |
1666 | 1666 | | |
1667 | 1667 | | |
| 1668 | + | |
| 1669 | + | |
| 1670 | + | |
| 1671 | + | |
| 1672 | + | |
| 1673 | + | |
| 1674 | + | |
| 1675 | + | |
| 1676 | + | |
| 1677 | + | |
| 1678 | + | |
1668 | 1679 | | |
1669 | 1680 | | |
1670 | 1681 | | |
| |||
2818 | 2829 | | |
2819 | 2830 | | |
2820 | 2831 | | |
2821 | | - | |
| 2832 | + | |
2822 | 2833 | | |
2823 | 2834 | | |
2824 | 2835 | | |
| |||
2831 | 2842 | | |
2832 | 2843 | | |
2833 | 2844 | | |
2834 | | - | |
2835 | | - | |
2836 | | - | |
2837 | | - | |
2838 | | - | |
2839 | | - | |
2840 | | - | |
2841 | | - | |
2842 | | - | |
2843 | | - | |
2844 | | - | |
2845 | | - | |
2846 | | - | |
2847 | | - | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
| 2862 | + | |
| 2863 | + | |
2848 | 2864 | | |
2849 | 2865 | | |
2850 | 2866 | | |
| 2867 | + | |
| 2868 | + | |
2851 | 2869 | | |
2852 | 2870 | | |
2853 | 2871 | | |
| |||
0 commit comments