mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-20 23:54:22 +01:00
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:
committed by
Christian Decker
parent
bcde9675e4
commit
b2ee53fd89
@@ -275,7 +275,7 @@ int main(int argc, char *argv[])
|
||||
|
||||
idstr = tal_fmt(ctx, "lightning-cli-%i", getpid());
|
||||
cmd = tal_fmt(ctx,
|
||||
"{ \"method\" : \"%s\", \"id\" : \"%s\", \"params\" : ",
|
||||
"{ \"jsonrpc\" : \"2.0\", \"method\" : \"%s\", \"id\" : \"%s\", \"params\" :",
|
||||
method, idstr);
|
||||
|
||||
if (input == DEFAULT_INPUT) {
|
||||
|
||||
Reference in New Issue
Block a user