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

Function list_blacklist

lightningd/runes.c:628–642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

626AUTODATA(json_command, &invokerune_command);
627
628static struct command_result *list_blacklist(struct command *cmd,
629 const struct rune_blacklist *blist)
630{
631 struct json_stream *js = json_stream_success(cmd);
632
633 json_array_start(js, "blacklist");
634 for (size_t i = 0; i < tal_count(blist); i++) {
635 json_object_start(js, NULL);
636 json_add_u64(js, "start", blist[i].start);
637 json_add_u64(js, "end", blist[i].end);
638 json_object_end(js);
639 }
640 json_array_end(js);
641 return command_success(cmd, js);
642}
643
644static struct command_result *json_blacklistrune(struct command *cmd,
645 const char *buffer,

Callers 1

json_blacklistruneFunction · 0.85

Calls 7

json_array_startFunction · 0.85
json_object_startFunction · 0.85
json_add_u64Function · 0.85
json_object_endFunction · 0.85
json_array_endFunction · 0.85
json_stream_successFunction · 0.70
command_successFunction · 0.70

Tested by

no test coverage detected