askrene: add maxparts

Changelog-Added: askrene: add a new parameter maxparts to getroutes that limits the number of routes in the solution.

Signed-off-by: Lagrang3 <lagrang3@protonmail.com>
This commit is contained in:
Lagrang3
2025-08-13 10:48:14 +01:00
committed by Rusty Russell
parent b298e3fc97
commit 0c5c7a5334
10 changed files with 183 additions and 94 deletions

View File

@@ -73,6 +73,14 @@
"Maximum number of blocks of delay for the route. Cannot be bigger than 2016."
],
"default": "2016"
},
"maxparts": {
"type": "u32",
"added": "v25.09",
"description": [
"Maximum number of routes in the solution."
],
"default": "100"
}
}
},