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

Function recurrence_time_unit_name

plugins/offers.c:843–857  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

json_add_recurrenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected