mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-19 15:14:23 +01:00
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:
committed by
Christian Decker
parent
3a25e9b8d6
commit
997e3f7fe6
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user