core-lightning/plugins/askrene
Rusty Russell 3c5c22b17a askrene: change inform interface, take into account reserve.
Lagrang3 points out that if we hit a maximum, we should take into account
the reserve.  This is true, but it's hard for the caller to do, so change
the API to be slightly higher level.

Tell "inform" what happened, and it adjust the constraints appropriately.
This makes the least assumptions possible (a reserve does *not* mean that
the capacity was actually used at that time).

We also add a mode to say "this succeeded": for now this does nothing,
but it could reduce both min/max capacities, and add capacity in the
other direction.  This is useful for future payments, but not as useful
for the current one.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-10-04 11:27:53 +09:30
..
askrene.c askrene: change inform interface, take into account reserve. 2024-10-04 11:27:53 +09:30
askrene.h askrene: make route_query contain pointer to the command. 2024-10-04 11:27:53 +09: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
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: askrene-create-layer and askrene-remove-layer. 2024-10-04 11:27:53 +09:30
layer.h askrene: askrene-create-layer and askrene-remove-layer. 2024-10-04 11:27:53 +09:30
Makefile askrene: move flow refining code to its own file. 2024-09-19 12:16:53 +09:30
mcf.c askrene: optimize, by calling tal_count less. 2024-10-04 08:47:53 +09:30
mcf.h askrene: include the mcf and flow routines. 2024-08-07 20:35:30 +09:30
refine.c askrene: remember individual reservations, for better debugging. 2024-10-04 11:27:53 +09:30
refine.h askrene: move flow refining code to its own file. 2024-09-19 12:16:53 +09:30
reserve.c askrene: change inform interface, take into account reserve. 2024-10-04 11:27:53 +09:30
reserve.h askrene: change inform interface, take into account reserve. 2024-10-04 11:27:53 +09:30