| 131 | } |
| 132 | |
| 133 | static const char *init(struct command *init_cmd, const char *buf UNUSED, |
| 134 | const jsmntok_t *config UNUSED) |
| 135 | { |
| 136 | rpc_scan(init_cmd, "getinfo", take(json_out_obj(NULL, NULL, NULL)), "{id:%}", |
| 137 | JSON_SCAN(json_to_node_id, &my_id)); |
| 138 | |
| 139 | global_hints = notleak_with_children(channel_hint_set_new(init_cmd->plugin)); |
| 140 | |
| 141 | accepted_extra_tlvs = notleak(tal_arr(NULL, u64, 0)); |
| 142 | rpc_scan(init_cmd, "listconfigs", take(json_out_obj(NULL, NULL, NULL)), |
| 143 | "{configs:{" |
| 144 | "accept-htlc-tlv-type:{values_int:%}}}", |
| 145 | JSON_SCAN(jsonarr_accumulate_u64, &accepted_extra_tlvs)); |
| 146 | |
| 147 | return NULL; |
| 148 | } |
| 149 | |
| 150 | struct payment_modifier *pay_mods[] = { |
| 151 | &keysend_pay_mod, |
nothing calls this directly
no test coverage detected