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