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

Function json_add_fields_included

plugins/offers_proof.c:206–215  ·  view source on GitHub ↗

Output the fields_included arrays for a payer_proof TLV. */

Source from the content-addressed store, hash-verified

204
205/* Output the fields_included arrays for a payer_proof TLV. */
206static void json_add_fields_included(struct json_stream *js,
207 const struct tlv_payer_proof *pptlv)
208{
209 json_add_tlv_arr_level(js, "offer_fields_included",
210 LAYER_OFFER, pptlv->fields);
211 json_add_tlv_arr_level(js, "invreq_fields_included",
212 LAYER_INVREQ, pptlv->fields);
213 json_add_tlv_arr_level(js, "invoice_fields_included",
214 LAYER_INVOICE, pptlv->fields);
215}
216
217static struct command_result *payersign_done(struct command *cmd,
218 const char *method UNNEEDED,

Callers 1

payersign_doneFunction · 0.85

Calls 1

json_add_tlv_arr_levelFunction · 0.85

Tested by

no test coverage detected