lightning/plugins/askrene
Lagrang3 81417958d4 askrene-inform-channel: change order of operations
Change order of operations to ensure that askrene-inform-channel with
inform=constrained computes the correct upper bound on the liquidity:

    upperBound = reserves + amount - 1

With the previous order of operations in the case amount=0 we would get:

    upperBound = reserves

instead of
    upperBound = reserves - 1

Changelog-None

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
2025-05-13 19:14:57 +09:30
..
test askrene: add compiler flag ASKRENE_UNITTEST 2024-11-21 16:17:52 +10:30
algorithm.c askrene: bugfix queue overflow 2024-11-21 16:17:52 +10:30
algorithm.h askrene: add mcf_refinement to the public API 2024-11-21 16:17:52 +10:30
askrene.c askrene-inform-channel: change order of operations 2025-05-13 19:14:57 +09:30
askrene.h askrene: persistent layer support. 2024-11-08 21:48:55 +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: don't include impossible channels in the MCF graph. 2025-02-14 15:18:48 +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: remove flowset_probability() now refine step calculates it. 2024-10-15 09:58:04 +10:30
flow.h askrene: expose fmt_flow_full and make more generic. 2025-01-28 10:53:22 +10:30
graph.c askrene: remove allocation checks 2024-11-21 16:17:52 +10:30
graph.h askrene: small fixes suggested by Rusty Russell 2024-11-21 16:17:52 +10:30
layer.c askrene-bias-channel: bias call add up. 2025-05-08 12:28:57 +09:30
layer.h askrene-bias-channel: bias call add up. 2025-05-08 12:28:57 +09:30
Makefile askrene: add graph algorithms module 2024-11-21 16:17:52 +10:30
mcf.c askrene: remove all small channels if there's no MPP support. 2025-02-14 22:17:21 +10:30
mcf.h askrene: remove all small channels if there's no MPP support. 2025-02-14 22:17:21 +10:30
priorityqueue.c askrene: add priorityqueue 2024-11-21 16:17:52 +10:30
priorityqueue.h askrene: add priorityqueue 2024-11-21 16:17:52 +10:30
refine.c askrene: don't crash, just report, when a flow's remaining capacity is negative. 2025-01-28 10:53:22 +10:30
refine.h askrene: use refine step to calculate flowset probability. 2024-10-15 09:58:04 +10:30
reserve.c ccan/htable: update to explicit DUPS/NODUPS types. 2025-01-21 09:18:25 +10:30
reserve.h askrene: give better feedback when we can't find a suitable route. 2024-10-04 11:27:53 +09:30