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

Function htlc_accepted_continue

plugins/keysend.c:229–242  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

227};
228
229static struct command_result *
230htlc_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 */

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