getinfo: new RPC command

Useful for getting ID, what port (if not set in config file).

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2016-09-13 03:37:07 +09:30
parent c648897695
commit 221a96cdeb
4 changed files with 30 additions and 5 deletions

View File

@@ -72,6 +72,9 @@ struct lightningd_state {
char *config_dir;
char *rpc_filename;
/* Port we're listening on */
u16 portnum;
/* Configuration settings. */
struct config config;