Skip to content

Commit

Permalink
topology: begin deprecation of private channels in listchannels result
Browse files Browse the repository at this point in the history
Changelog-changed: Note: private channels will be deprecated from listchannels in 24.08
  • Loading branch information
endothermicdev committed Oct 10, 2023
1 parent b0829ff commit 86fec00
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions plugins/topology.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ static struct gossmap *global_gossmap;
static struct node_id local_id;
static struct plugin *plugin;

extern bool deprecated_apis;

/* We load this on demand, since we can start before gossipd. */
static struct gossmap *get_gossmap(void)
{
Expand Down Expand Up @@ -440,6 +442,10 @@ static void json_add_halfchan(struct json_stream *response,
struct amount_sat capacity;
bool local_disable;

/* FIXME: deprecate private channels in listchannels result in 24.08 */
if (deprecated_apis)
return;

/* These are channel (not per-direction) properties */
chanfeatures = gossmap_chan_get_features(tmpctx, gossmap, c);
scid = gossmap_chan_scid(gossmap, c);
Expand Down

0 comments on commit 86fec00

Please sign in to comment.