lightningd: expose/accept "style" parameter in routes.

Default is legacy.  If we have future styles, new strings can be defined,
but for now it's "tlv" or "legacy".

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-11-14 10:48:53 +10:30
committed by Christian Decker
parent 997e3f7fe6
commit c83834ca82
4 changed files with 47 additions and 4 deletions

View File

@@ -113,8 +113,9 @@ factor for larger amounts, and is basically ignored for tiny ones\.
On success, a "route" array is returned\. Each array element contains
\fIid\fR (the node being routed through), \fImsatoshi\fR (the millisatoshis
sent), \fIamount_msat\fR (the same, with \fImsat\fR appended), and \fIdelay\fR (the
number of blocks to timeout at this node)\.
sent), \fIamount_msat\fR (the same, with \fImsat\fR appended), \fIdelay\fR (the
number of blocks to timeout at this node), and \fIstyle\fR (indicating
the features which can be used for this hop)\.
The final \fIid\fR will be the destination \fIid\fR given in the input\. The

View File

@@ -279,8 +279,9 @@ RETURN VALUE
On success, a "route" array is returned. Each array element contains
*id* (the node being routed through), *msatoshi* (the millisatoshis
sent), *amount\_msat* (the same, with *msat* appended), and *delay* (the
number of blocks to timeout at this node).
sent), *amount\_msat* (the same, with *msat* appended), *delay* (the
number of blocks to timeout at this node), and *style* (indicating
the features which can be used for this hop).
The final *id* will be the destination *id* given in the input. The
difference between the first *msatoshi* minus the *msatoshi* given in