| 302 | }; |
| 303 | |
| 304 | static struct command_result * |
| 305 | htlc_accepted_continue(struct command *cmd, struct tlv_payload *payload) |
| 306 | { |
| 307 | struct json_stream *response; |
| 308 | response = jsonrpc_stream_success(cmd); |
| 309 | |
| 310 | json_add_string(response, "result", "continue"); |
| 311 | if (payload) { |
| 312 | u8 *binpayload = tal_arr(cmd, u8, 0); |
| 313 | towire_tlvstream_raw(&binpayload, payload->fields); |
| 314 | json_add_string(response, "payload", tal_hex(cmd, binpayload)); |
| 315 | } |
| 316 | return command_finished(cmd, response); |
| 317 | } |
| 318 | |
| 319 | /* Struct wrapping the information we extract from an incoming keysend |
| 320 | * payment */ |
no test coverage detected