plugins/libplugin-pay: use gossmap.

This is a fairly direct translation.  Even so, it should be faster in
most cases, and and we can do more sophisticated things if we want.

This also handles disabled channels better.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Changelog-Changed: plugins: `pay` will now try disabled channels as a last resort.
This commit is contained in:
Rusty Russell
2020-10-20 14:32:00 +10:30
parent eadf2c91fe
commit b470ae2c73
2 changed files with 257 additions and 123 deletions

View File

@@ -235,7 +235,7 @@ struct payment {
struct node_id *excluded_nodes;
/* Optional temporarily excluded channels/nodes (i.e. this routehint) */
const char **temp_exclusion;
struct node_id *temp_exclusion;
struct payment_result *result;