core-lightning/plugins/askrene
Rusty Russell 4b6a38fe0a askrene: fix bug with reservations used during refinement.
We were trying to get the max capacity of a flow to see if we could add some
more sats, and hit an assertion:

tests/test_askrene.py:707: 

```
 DEBUG   plugin-cln-askrene: notify msg info: Flow reduced to deliver 88070161msat not 90008000msat, because 107x1x0/1 has remaining capacity 88071042msat
 DEBUG   plugin-cln-askrene: notify msg info: Flow reduced to deliver 284138158msat not 284787000msat, because 108x1x0/1 has remaining capacity 284141000msat
 **BROKEN** plugin-cln-askrene: Flow delivers 129565000msat but max only 56506138msat
 INFO    plugin-cln-askrene: Killing plugin: exited during normal operation
```

We need to *unreserve* our flow before asking for max capacity.  We were
also missing a few less important cases where we altered flows without altering
the reservation, so fix those too.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-10-15 09:58:04 +10:30
..
askrene.c askrene: don't *completely* ignore fees to start. 2024-10-15 09:58:04 +10:30
askrene.h askrene: give notifications back to caller as we go. 2024-10-15 09:58:04 +10:30
dijkstra.c askrene: copy flow and dijkstra from renepay. 2024-08-07 20:35:30 +09:30
dijkstra.h askrene: copy flow and dijkstra from renepay. 2024-08-07 20:35:30 +09:30
explain_failure.c askrene: give notifications back to caller as we go. 2024-10-15 09:58:04 +10:30
explain_failure.h askrene: give better feedback when we can't find a suitable route. 2024-10-04 11:27:53 +09:30
flow.c askrene: add a "refining" step to add fees and handle corner cases. 2024-09-19 12:16:53 +09:30
flow.h askrene: add a "refining" step to add fees and handle corner cases. 2024-09-19 12:16:53 +09:30
layer.c askrene: more code tweaks on feedback from Lagrang3. 2024-10-04 11:27:53 +09:30
layer.h askrene: more code tweaks on feedback from Lagrang3. 2024-10-04 11:27:53 +09:30
Makefile askrene: give better feedback when we can't find a suitable route. 2024-10-04 11:27:53 +09:30
mcf.c askrene: calculate k value dynamically, using medians. 2024-10-15 09:58:04 +10:30
mcf.h askrene: debug and check we actually reduce fees when mu increase. 2024-10-15 09:58:04 +10:30
refine.c askrene: fix bug with reservations used during refinement. 2024-10-15 09:58:04 +10:30
refine.h askrene: move flow refining code to its own file. 2024-09-19 12:16:53 +09:30
reserve.c askrene: give better feedback when we can't find a suitable route. 2024-10-04 11:27:53 +09:30
reserve.h askrene: give better feedback when we can't find a suitable route. 2024-10-04 11:27:53 +09:30