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

Function main

plugins/renepay/main.c:469–496  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

467};
468
469int main(int argc, char *argv[])
470{
471 setup_locale();
472
473 /* Most gets initialized in init(), but set debug options here. */
474 pay_plugin = tal(NULL, struct pay_plugin);
475 pay_plugin->debug_mcf = pay_plugin->debug_payflow = false;
476
477 plugin_main(
478 argv,
479 init, NULL,
480 PLUGIN_RESTARTABLE,
481 /* init_rpc */ true,
482 /* features */ NULL,
483 commands, ARRAY_SIZE(commands),
484 notifications, ARRAY_SIZE(notifications),
485 /* hooks */ NULL, 0,
486 /* notification topics */ NULL, 0,
487 plugin_option("renepay-debug-mcf", "flag",
488 "Enable renepay MCF debug info.",
489 flag_option, NULL, &pay_plugin->debug_mcf),
490 plugin_option("renepay-debug-payflow", "flag",
491 "Enable renepay payment flows debug info.",
492 flag_option, NULL, &pay_plugin->debug_payflow),
493 NULL);
494
495 return 0;
496}

Callers

nothing calls this directly

Calls 3

setup_localeFunction · 0.85
plugin_mainFunction · 0.50
plugin_optionClass · 0.50

Tested by

no test coverage detected