JSONRPC: listconfigs command.

With the new 'human-readable' mode of lightning-cli, this actually produces
a valid config file.  It's a bit hacky though...

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2018-01-29 11:00:15 +10:30
committed by Christian Decker
parent 0600aac68f
commit 327e2b8fd8
4 changed files with 193 additions and 1 deletions

View File

@@ -414,7 +414,7 @@ static void log_to_file(const char *prefix,
fflush(logf);
}
static char *arg_log_to_file(const char *arg, struct lightningd *ld)
char *arg_log_to_file(const char *arg, struct lightningd *ld)
{
FILE *logf;