lnsocket

A minimal C library for connecting to the lightning network
git clone git://jb55.com/lnsocket
Log | Files | Refs | Submodules | README | LICENSE

commit f37826a1018efabeb4c437209bb731217c36e9d4
parent 13aabae3f844a63247997ed3d2e33db15f103adf
Author: William Casarin <jb55@jb55.com>
Date:   Wed,  9 Mar 2022 07:53:45 -0800

lnrpc: swap rune and method params. this was annoying me

should probably just use proper arguments

Diffstat:
Mlnrpc.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lnrpc.c b/lnrpc.c @@ -13,7 +13,7 @@ int usage() { - printf("lnrpc <nodeid> <ip/hostname> <method> <rune> [params (json string)]\n\n"); + printf("lnrpc <nodeid> <ip/hostname> <rune> <method> [params (json string)]\n\n"); printf("currently supports commando for clightning, but potentially more rpc types in the future!\n"); return 0; } @@ -51,8 +51,8 @@ int main(int argc, const char *argv[]) const char *nodeid = argv[1]; const char *host = argv[2]; - const char *method = argv[3]; - const char *rune = argv[4]; + const char *rune = argv[3]; + const char *method = argv[4]; const char *params = argc < 6 ? argv[5] : NULL; if (!(ok = lnsocket_connect(ln, nodeid, host)))