| 138 | } |
| 139 | |
| 140 | static const char *init(struct command *init_cmd, |
| 141 | const char *buf UNUSED, const jsmntok_t *config UNUSED) |
| 142 | { |
| 143 | struct exposesecret *exposesecret = exposesecret_data(init_cmd->plugin); |
| 144 | rpc_scan(init_cmd, "getinfo", |
| 145 | take(json_out_obj(NULL, NULL, NULL)), |
| 146 | "{id:%,alias:%}", |
| 147 | JSON_SCAN(json_to_pubkey, &exposesecret->our_node_id), |
| 148 | JSON_SCAN_TAL(exposesecret, json_strdup, &exposesecret->our_node_alias)); |
| 149 | return NULL; |
| 150 | } |
| 151 | |
| 152 | static const struct plugin_command commands[] = { |
| 153 | { |
nothing calls this directly
no test coverage detected