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

Function getinfo_done

plugins/xpay/xpay.c:2923–2941  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2921}
2922
2923static struct command_result *getinfo_done(struct command *aux_cmd,
2924 const char *method,
2925 const char *buf,
2926 const jsmntok_t *result,
2927 void *unused)
2928{
2929 struct xpay *xpay = xpay_of(aux_cmd->plugin);
2930 const char *err;
2931
2932 err = json_scan(tmpctx, buf, result,
2933 "{id:%}", JSON_SCAN(json_to_pubkey, &xpay->local_id));
2934 if (err) {
2935 plugin_err(aux_cmd->plugin, "Bad getinfo '%.*s': %s",
2936 json_tok_full_len(result),
2937 json_tok_full(buf, result),
2938 err);
2939 }
2940 return aux_command_done(aux_cmd);
2941}
2942
2943/* Recursion */
2944static void start_aging_timer(struct plugin *plugin);

Callers

nothing calls this directly

Calls 6

xpay_ofFunction · 0.85
aux_command_doneFunction · 0.85
json_scanFunction · 0.50
plugin_errFunction · 0.50
json_tok_full_lenFunction · 0.50
json_tok_fullFunction · 0.50

Tested by

no test coverage detected