Files
palladum-lightning/plugins/askrene
Rusty Russell 03d38b612d askrene: fix infinite loop if refine_flows() cuts down our last flow with 1 remaining before maxparts.
1. We would find a flow.
2. refine_flow would reduce it so it doesn't deliver enough.
3. So we need to find another, but we are at the limit.
4. So we remove the flow we found.
5. Goto 1.

This can be fixed by disabling a channel which we caused us to reduce the flow,
so we should always make forward progress.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Fixed: Plugins: `askrene` could enter an infinite loop when maxparts is restricted.
2025-11-03 12:54:37 +10:30
..
2024-11-21 16:17:52 +10:30
2025-08-15 16:13:19 +09:30
2024-11-21 16:17:52 +10:30
2024-11-21 16:17:52 +10:30
2024-11-21 16:17:52 +10:30