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

Function in_ranges

common/bolt12.c:1137–1146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1135}
1136
1137static bool in_ranges(u64 numtype,
1138 u64 r1_start, u64 r1_end,
1139 u64 r2_start, u64 r2_end)
1140{
1141 if (numtype >= r1_start && numtype <= r1_end)
1142 return true;
1143 if (numtype >= r2_start && numtype <= r2_end)
1144 return true;
1145 return false;
1146}
1147
1148const struct tlv_field *any_field_outside_range(const struct tlv_field *fields,
1149 bool ignore_signature_fields,

Callers 1

any_field_outside_rangeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected