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

Function find_tlv_num

common/bolt12_proof.c:288–295  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288static bool find_tlv_num(const struct tlv_payer_proof *pptlv, bigsize_t num)
289{
290 for (size_t i = 0; i < tal_count(pptlv->fields); i++) {
291 if (pptlv->fields[i].numtype == num)
292 return true;
293 }
294 return false;
295}
296
297const char *check_payer_proof(const tal_t *ctx,
298 const struct tlv_payer_proof *pptlv)

Callers 1

check_payer_proofFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected