mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
doc: fill in parameters in getroute manpage.
Fixes: #2419 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a988ed70b9
commit
1da8e498c0
@ -2,12 +2,12 @@
|
||||
.\" Title: lightning-getroute
|
||||
.\" Author: [see the "AUTHOR" section]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.79.1 <http://docbook.sf.net/>
|
||||
.\" Date: 02/23/2019
|
||||
.\" Date: 03/01/2019
|
||||
.\" Manual: \ \&
|
||||
.\" Source: \ \&
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "LIGHTNING\-GETROUTE" "7" "02/23/2019" "\ \&" "\ \&"
|
||||
.TH "LIGHTNING\-GETROUTE" "7" "03/01/2019" "\ \&" "\ \&"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
@ -31,7 +31,7 @@
|
||||
lightning-getroute \- Command for routing a payment (low\-level)\&.
|
||||
.SH "SYNOPSIS"
|
||||
.sp
|
||||
\fBgetroute\fR \fIid\fR \fImsatoshi\fR \fIriskfactor\fR [\fIcltv\fR] [\fIfromid\fR] [\fIfuzzpercent\fR]
|
||||
\fBgetroute\fR \fIid\fR \fImsatoshi\fR \fIriskfactor\fR [\fIcltv\fR] [\fIfromid\fR] [\fIfuzzpercent\fR] [\fIexclude\fR] [\fImaxhops\fR]
|
||||
.SH "DESCRIPTION"
|
||||
.sp
|
||||
The \fBgetroute\fR RPC command attempts to find the best route for the payment of \fImsatoshi\fR to lightning node \fIid\fR, such that the payment will arrive at \fIid\fR with \fIcltv\fR\-blocks to spare (default 9)\&.
|
||||
@ -47,6 +47,10 @@ If you didn\(cqt care about risk, \fIriskfactor\fR would be zero\&.
|
||||
\fIfromid\fR is the node to start the route from: default is this node\&.
|
||||
.sp
|
||||
The \fIfuzzpercent\fR is a positive floating\-point number, representing a percentage of the actual fee\&. The \fIfuzzpercent\fR is used to distort computed fees along each channel, to provide some randomization to the route generated\&. 0\&.0 means the exact fee of that channel is used, while 100\&.0 means the fee used might be from 0 to twice the actual fee\&. The default is 5\&.0, or up to 5% fee distortion\&.
|
||||
.sp
|
||||
\fIexclude\fR is a JSON array of short\-channel\-id/direction (e\&.g\&. [ "564334x877x1/0", "564195x1292x0/1" ]) which should be excluded from consideration for routing\&. The default is not to exclude any channels\&.
|
||||
.sp
|
||||
\fImaxhops\fR is the maximum number of channels to return; default is 20\&.
|
||||
.SH "RISKFACTOR EFFECT ON ROUTING"
|
||||
.sp
|
||||
The risk factor is treated as if it were an additional fee on the route, for the purposes of comparing routes\&.
|
||||
|
@ -9,7 +9,7 @@ lightning-getroute - Command for routing a payment (low-level).
|
||||
|
||||
SYNOPSIS
|
||||
--------
|
||||
*getroute* 'id' 'msatoshi' 'riskfactor' ['cltv'] ['fromid'] ['fuzzpercent']
|
||||
*getroute* 'id' 'msatoshi' 'riskfactor' ['cltv'] ['fromid'] ['fuzzpercent'] ['exclude'] ['maxhops']
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
@ -42,6 +42,9 @@ to provide some randomization to the route generated.
|
||||
while 100.0 means the fee used might be from 0 to twice the actual fee.
|
||||
The default is 5.0, or up to 5% fee distortion.
|
||||
|
||||
'exclude' is a JSON array of short-channel-id/direction (e.g. [ "564334x877x1/0", "564195x1292x0/1" ]) which should be excluded from consideration for routing. The default is not to exclude any channels.
|
||||
|
||||
'maxhops' is the maximum number of channels to return; default is 20.
|
||||
|
||||
RISKFACTOR EFFECT ON ROUTING
|
||||
----------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user