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

Function list_blacklist

lightningd/runes.c:618–632  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

616AUTODATA(json_command, &invokerune_command);
617
618static struct command_result *list_blacklist(struct command *cmd,
619 const struct rune_blacklist *blist)
620{
621 struct json_stream *js = json_stream_success(cmd);
622
623 json_array_start(js, "blacklist");
624 for (size_t i = 0; i < tal_count(blist); i++) {
625 json_object_start(js, NULL);
626 json_add_u64(js, "start", blist[i].start);
627 json_add_u64(js, "end", blist[i].end);
628 json_object_end(js);
629 }
630 json_array_end(js);
631 return command_success(cmd, js);
632}
633
634static struct command_result *json_blacklistrune(struct command *cmd,
635 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