routerrpc: use cltv delta default for buildroute.

This commit uses the default timelock delta (cltv delta) when
no value is provided for the buildroute rpc cmd.
Moreover it enhances the docs.
This commit is contained in:
ziggie committed 2024-01-16 14:08:51 +01:00
1 parent 34af399a5b
commit 79fb45074b
4 files changed
+19 -1

No files matched your search

+4
View File
@@ -124,6 +124,10 @@ service Router {
BuildRoute builds a fully specified route based on a list of hop public
keys. It retrieves the relevant channel policies from the graph in order to
calculate the correct fees and time locks.
Note that LND will use its default final_cltv_delta if no value is supplied.
Make sure to add the correct final_cltv_delta depending on the invoice
restriction. Moreover the caller has to make sure to provide the
payment_addr if the route is paying an invoice which signaled it.
*/
rpc BuildRoute (BuildRouteRequest) returns (BuildRouteResponse);