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

Function in_ranges

common/bolt12.c:834–843  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

832}
833
834static bool in_ranges(u64 numtype,
835 u64 r1_start, u64 r1_end,
836 u64 r2_start, u64 r2_end)
837{
838 if (numtype >= r1_start && numtype <= r1_end)
839 return true;
840 if (numtype >= r2_start && numtype <= r2_end)
841 return true;
842 return false;
843}
844
845const struct tlv_field *any_field_outside_range(const struct tlv_field *fields,
846 bool ignore_signature_fields,

Callers 1

any_field_outside_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected