MCPcopy Create free account
hub / github.com/ElementsProject/lightning / listpeerchannels_done

Function listpeerchannels_done

plugins/askrene/askrene.c:826–845  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

824}
825
826static struct command_result *
827listpeerchannels_done(struct command *cmd,
828 const char *method UNUSED,
829 const char *buffer,
830 const jsmntok_t *toks,
831 struct getroutes_info *info)
832{
833 struct askrene *askrene = get_askrene(cmd->plugin);
834 struct gossmap_localmods *localmods;
835
836 info->local_layer = new_temp_layer(info, askrene, "auto.localchans");
837 localmods = gossmods_from_listpeerchannels(cmd,
838 &askrene->my_id,
839 buffer, toks,
840 false,
841 add_localchan,
842 info);
843
844 return do_getroutes(cmd, localmods, info);
845}
846
847/* Mutual recursion */
848static struct command_result *begin_request(struct askrene *askrene,

Callers

nothing calls this directly

Calls 3

get_askreneFunction · 0.85
new_temp_layerFunction · 0.85
do_getroutesFunction · 0.85

Tested by

no test coverage detected