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

@@ -254,6 +254,7 @@ static struct lightningd_state *lightningd_state(void)
list_head_init(&dstate->peers);
list_head_init(&dstate->pay_commands);
dstate->portnum = 0;
timers_init(&dstate->timers, controlled_time());
txwatch_hash_init(&dstate->txwatches);
txowatch_hash_init(&dstate->txowatches);