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

Function recurrence_time_unit_name

plugins/offers.c:841–855  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

839}
840
841static const char *recurrence_time_unit_name(u8 time_unit)
842{
843 /* BOLT-recurrence #12:
844 * `time_unit` defining 0 (seconds), 1 (days), 2 (months).
845 */
846 switch (time_unit) {
847 case 0:
848 return "seconds";
849 case 1:
850 return "days";
851 case 2:
852 return "months";
853 }
854 return NULL;
855}
856
857static bool json_add_utf8(struct json_stream *js,
858 const char *fieldname,

Callers 1

json_add_recurrenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected