Skip to content

Commit 84eacae

Browse files
laanwjniftynei
authored andcommitted
ping: First parameter is called 'id' not 'peerid', fix help
The first argument of 'ping' was documented as 'peerid', however internally it is expected to be just 'id'. To avoid breaking the API, opt to fix the documentation.
1 parent 634f19a commit 84eacae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightningd/ping.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,6 @@ static void json_ping(struct command *cmd,
8686
static const struct json_command ping_command = {
8787
"ping",
8888
json_ping,
89-
"Send {peerid} a ping of length {len} (default 128) asking for {pongbytes} (default 128)"
89+
"Send peer {id} a ping of length {len} (default 128) asking for {pongbytes} (default 128)"
9090
};
9191
AUTODATA(json_command, &ping_command);

0 commit comments

Comments
 (0)