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

Function add_skipped

lightningd/log.c:876–885  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

874};
875
876static void add_skipped(struct log_info *info)
877{
878 if (info->num_skipped) {
879 json_object_start(info->response, NULL);
880 json_add_string(info->response, "type", "SKIPPED");
881 json_add_num(info->response, "num_skipped", info->num_skipped);
882 json_object_end(info->response);
883 info->num_skipped = 0;
884 }
885}
886
887static void log_to_json(unsigned int skipped,
888 struct timerel diff,

Callers 2

log_to_jsonFunction · 0.85
json_add_logFunction · 0.85

Calls 4

json_object_startFunction · 0.50
json_add_stringFunction · 0.50
json_add_numFunction · 0.50
json_object_endFunction · 0.50

Tested by

no test coverage detected