lightningd: move json_add_route into gossip_control.c and make static.

There's only one caller.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2019-11-14 10:47:53 +10:30
committed by Christian Decker
parent 3a25e9b8d6
commit 997e3f7fe6
3 changed files with 27 additions and 34 deletions

View File

@@ -26,7 +26,6 @@ struct json_escape;
struct json_stream;
struct pubkey;
struct node_id;
struct route_hop;
struct sha256;
struct short_channel_id;
struct wallet_payment;
@@ -34,10 +33,6 @@ struct wallet_tx;
struct wireaddr;
struct wireaddr_internal;
/* Output a route array. */
void json_add_route(struct json_stream *r, char const *n,
const struct route_hop *hops, size_t hops_len);
/* '"fieldname" : "0289abcdef..."' or "0289abcdef..." if fieldname is NULL */
void json_add_pubkey(struct json_stream *response,
const char *fieldname,