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

Function tlvfield_cmp

plugins/keysend.c:329–337  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

327};
328
329static int tlvfield_cmp(const struct tlv_field *a,
330 const struct tlv_field *b, void *unused)
331{
332 if (a->numtype > b->numtype)
333 return 1;
334 else if (a->numtype < b->numtype)
335 return -1;
336 return 0;
337}
338
339/* Check to see if a given TLV type is in the allowlist. */
340static bool keysend_accept_extra_tlv_type(u64 type)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected