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

Function in_ranges

common/bolt12.c:854–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

852}
853
854static bool in_ranges(u64 numtype,
855 u64 r1_start, u64 r1_end,
856 u64 r2_start, u64 r2_end)
857{
858 if (numtype >= r1_start && numtype <= r1_end)
859 return true;
860 if (numtype >= r2_start && numtype <= r2_end)
861 return true;
862 return false;
863}
864
865const struct tlv_field *any_field_outside_range(const struct tlv_field *fields,
866 bool ignore_signature_fields,

Callers 1

any_field_outside_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected