| 467 | }; |
| 468 | |
| 469 | int 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 | } |
nothing calls this directly
no test coverage detected