| 1988 | } |
| 1989 | |
| 1990 | int main(int argc, char *argv[]) |
| 1991 | { |
| 1992 | setup_locale(); |
| 1993 | struct offers_data *od = tal(NULL, struct offers_data); |
| 1994 | |
| 1995 | od->disable_connect = false; |
| 1996 | od->dev_invoice_bpath_scid = false; |
| 1997 | od->dev_invoice_internal_scid = NULL; |
| 1998 | od->global_gossmap_ = NULL; |
| 1999 | |
| 2000 | /* We deal in UTC; mktime() uses local time */ |
| 2001 | setenv("TZ", "", 1); |
| 2002 | plugin_main(argv, init, take(od), PLUGIN_RESTARTABLE, true, NULL, |
| 2003 | commands, ARRAY_SIZE(commands), |
| 2004 | notifications, ARRAY_SIZE(notifications), |
| 2005 | hooks, ARRAY_SIZE(hooks), |
| 2006 | NULL, 0, |
| 2007 | plugin_option("fetchinvoice-noconnect", "flag", |
| 2008 | "Don't try to connect directly to fetch/pay an invoice.", |
| 2009 | flag_option, flag_jsonfmt, &od->disable_connect), |
| 2010 | plugin_option_dev("dev-invoice-bpath-scid", "flag", |
| 2011 | "Use short_channel_id instead of pubkey when creating a blinded payment path", |
| 2012 | flag_option, flag_jsonfmt, &od->dev_invoice_bpath_scid), |
| 2013 | plugin_option_dev("dev-invoice-internal-scid", "string", |
| 2014 | "Use short_channel_id instead of pubkey when creating a blinded payment path", |
| 2015 | scid_option, scid_jsonfmt, &od->dev_invoice_internal_scid), |
| 2016 | NULL); |
| 2017 | } |
nothing calls this directly
no test coverage detected