Browse Source

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.
ppa-0.6.1
Christian Decker 8 years ago
committed by Rusty Russell
parent
commit
51a22c4274
  1. 2
      daemon/pay.c
  2. 2
      doc/lightning-getroute.7.txt

2
daemon/pay.c

@ -217,7 +217,7 @@ static void json_getroute(struct command *cmd,
"msatoshi", &msatoshitok,
"riskfactor", &riskfactortok,
NULL)) {
command_fail(cmd, "Need id and msatoshi");
command_fail(cmd, "Need id, msatoshi and riskfactor");
return;
}

2
doc/lightning-getroute.7.txt

@ -9,7 +9,7 @@ lightning-getroute - Protocol for routing a payment.
SYNOPSIS
--------
*getroute* 'msatoshi' 'id' 'riskfactor'
*getroute* 'id' 'msatoshi' 'riskfactor'
DESCRIPTION
-----------

Loading…
Cancel
Save