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

Function main

plugins/exposesecret.c:159–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157};
158
159int main(int argc, char *argv[])
160{
161 setup_locale();
162
163 struct exposesecret *exposesecret = talz(NULL, struct exposesecret);
164 plugin_main(argv, init, take(exposesecret),
165 PLUGIN_RESTARTABLE, true, NULL, commands, ARRAY_SIZE(commands),
166 NULL, 0, NULL, 0, NULL, 0,
167 plugin_option("exposesecret-passphrase", "string-conceal",
168 "Enable exposesecret command to allow HSM Secret backup, with this passphrase",
169 charp_option, NULL, &exposesecret->exposure_passphrase),
170 NULL);
171}

Callers

nothing calls this directly

Calls 3

setup_localeFunction · 0.85
plugin_mainFunction · 0.70
plugin_optionClass · 0.70

Tested by

no test coverage detected