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

Function json_add_opt_disable_plugins

lightningd/plugin.c:2007–2014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2005}
2006
2007void json_add_opt_disable_plugins(struct json_stream *response,
2008 const struct plugins *plugins)
2009{
2010 json_array_start(response, "disable-plugin");
2011 for (size_t i = 0; i < tal_count(plugins->blacklist); i++)
2012 json_add_string(response, NULL, plugins->blacklist[i]);
2013 json_array_end(response);
2014}
2015
2016/**
2017 * Determine whether a plugin is subscribed to a given topic/method.

Callers 1

add_configFunction · 0.85

Calls 3

json_array_startFunction · 0.50
json_add_stringFunction · 0.50
json_array_endFunction · 0.50

Tested by

no test coverage detected