mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
doc: Fixed two small mistakes in the getroute documentation
Two arguments were flipped and riskfactor was missing in the error message returned from the JSON.
This commit is contained in:
committed by
Rusty Russell
parent
26d4042436
commit
51a22c4274
@@ -217,7 +217,7 @@ static void json_getroute(struct command *cmd,
|
|||||||
"msatoshi", &msatoshitok,
|
"msatoshi", &msatoshitok,
|
||||||
"riskfactor", &riskfactortok,
|
"riskfactor", &riskfactortok,
|
||||||
NULL)) {
|
NULL)) {
|
||||||
command_fail(cmd, "Need id and msatoshi");
|
command_fail(cmd, "Need id, msatoshi and riskfactor");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -9,7 +9,7 @@ lightning-getroute - Protocol for routing a payment.
|
|||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
--------
|
--------
|
||||||
*getroute* 'msatoshi' 'id' 'riskfactor'
|
*getroute* 'id' 'msatoshi' 'riskfactor'
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
-----------
|
-----------
|
||||||
|
|||||||
Reference in New Issue
Block a user