routing: Passing back all addresses on getnodes

This commit is contained in:
Christian Decker
2017-05-08 23:22:59 +02:00
committed by Rusty Russell
parent 26892e79bb
commit e972b208c7
6 changed files with 46 additions and 6 deletions

View File

@@ -112,6 +112,10 @@ void json_add_short_channel_id(struct json_result *response,
const char *fieldname,
const struct short_channel_id *id);
/* JSON serialize a network address for a node */
void json_add_address(struct json_result *response, const char *fieldname,
const struct ipaddr *addr);
void json_add_object(struct json_result *result, ...);
const char *json_result_string(const struct json_result *result);