| 2921 | } |
| 2922 | |
| 2923 | static 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 */ |
| 2944 | static void start_aging_timer(struct plugin *plugin); |
nothing calls this directly
no test coverage detected