lightning-cli: add jsonrpc version to cmd json packet

Plugins expect jsonrpc commands to include the version, so let's include
it.
This commit is contained in:
lisa neigut
2018-12-20 22:25:31 -08:00
committed by Christian Decker
parent bcde9675e4
commit b2ee53fd89
3 changed files with 3 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
* done, the `json_connection` needs to drain it (if it's still around). At
* that point, the `json_connection` becomes the owner (or it's simply freed).
*/
/* eg: { "method" : "dev-echo", "params" : [ "hello", "Arabella!" ], "id" : "1" } */
/* eg: { "jsonrpc":"2.0", "method" : "dev-echo", "params" : [ "hello", "Arabella!" ], "id" : "1" } */
#include <arpa/inet.h>
#include <bitcoin/address.h>
#include <bitcoin/base58.h>