| 234 | } |
| 235 | |
| 236 | static const char *init(struct command *init_cmd, |
| 237 | const char *buf UNUSED, const jsmntok_t *config UNUSED) |
| 238 | { |
| 239 | rpc_scan(init_cmd, "getinfo", take(json_out_obj(NULL, NULL, NULL)), |
| 240 | "{id:%}", JSON_SCAN(json_to_node_id, &my_id)); |
| 241 | |
| 242 | global_hints = notleak_with_children(channel_hint_set_new(init_cmd->plugin)); |
| 243 | |
| 244 | plugin_set_memleak_handler(init_cmd->plugin, memleak_mark_payments); |
| 245 | return NULL; |
| 246 | } |
| 247 | |
| 248 | static void on_payment_success(struct payment *payment) |
| 249 | { |
nothing calls this directly
no test coverage detected