MCPcopy Create free account
hub / github.com/ElementsProject/lightning / htlc_accepted_continue

Function htlc_accepted_continue

plugins/keysend.c:304–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

302};
303
304static struct command_result *
305htlc_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 */

Callers 3

htlc_accepted_callFunction · 0.85

Calls 5

towire_tlvstream_rawFunction · 0.85
tal_hexFunction · 0.85
jsonrpc_stream_successFunction · 0.70
command_finishedFunction · 0.70
json_add_stringFunction · 0.50

Tested by

no test coverage detected