diff --git a/lightningd/options.c b/lightningd/options.c index 8fd78f8ca..d156134e9 100644 --- a/lightningd/options.c +++ b/lightningd/options.c @@ -409,7 +409,7 @@ static void config_register_opts(struct lightningd *ld) "Perform cleanup of expired invoices every given seconds, or do not autoclean if 0"); opt_register_arg("--autocleaninvoice-expired-by", opt_set_u64, opt_show_u64, - &ld->ini_autocleaninvoice_cycle, + &ld->ini_autocleaninvoice_expiredby, "If expired invoice autoclean enabled, invoices that have expired for at least this given seconds are cleaned"); opt_register_arg("--proxy", opt_add_proxy_addr, NULL, ld,"Set a socks v5 proxy IP address and port");