| 824 | } |
| 825 | |
| 826 | static struct command_result * |
| 827 | listpeerchannels_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 */ |
| 848 | static struct command_result *begin_request(struct askrene *askrene, |
nothing calls this directly
no test coverage detected