| 227 | }; |
| 228 | |
| 229 | static struct command_result * |
| 230 | htlc_accepted_continue(struct command *cmd, struct tlv_tlv_payload *payload) |
| 231 | { |
| 232 | struct json_stream *response; |
| 233 | response = jsonrpc_stream_success(cmd); |
| 234 | |
| 235 | json_add_string(response, "result", "continue"); |
| 236 | if (payload) { |
| 237 | u8 *binpayload = tal_arr(cmd, u8, 0); |
| 238 | towire_tlvstream_raw(&binpayload, payload->fields); |
| 239 | json_add_string(response, "payload", tal_hex(cmd, binpayload)); |
| 240 | } |
| 241 | return command_finished(cmd, response); |
| 242 | } |
| 243 | |
| 244 | /* Struct wrapping the information we extract from an incoming keysend |
| 245 | * payment */ |
no test coverage detected