Rusty Russell
79ceb59d7a
plugins/askrene: remove local contexts.
...
In general, we should be using tmpctx unless there's a specific reason not to.
It's clear, and simplifies the code somewhat.
If tmpctx is not cleaned often enough, we can look at a per-MCF context, but this
seems like premature optimization.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-07 20:35:30 +09:30
Rusty Russell
be054dcb3f
askrene: make the flow.[ch] files compile.
...
This adapts them to their new locations, and copies a few more routines.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-07 20:35:30 +09:30
Rusty Russell
1db5cf6dea
askrene: simply fail if a flow amount exceeds 64 bits.
...
Rather than handling failure, simply report and exit the plugin.
Simplifies error handling.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-07 20:35:30 +09:30
Rusty Russell
37793b0ac2
askrene/flow: don't omit initial hop in flow_spend.
...
That will be done in the caller, not here.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-07 20:35:30 +09:30
Rusty Russell
e4b84f1ffb
askrene: copy flow and dijkstra from renepay.
...
Still don't actually try compiling them.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2024-08-07 20:35:30 +09:30