mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 00:54:20 +01:00
invoice: change default expiry to 7 days.
For online services, shorter may be fine, but for casual use I'm usually in a different timezone than the payer, so needs to be at least 1 day. Certainly 1 hr is short if they have to open a channel. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
committed by
neil saitug
parent
77b859eaec
commit
1d6584e733
@@ -415,7 +415,7 @@ static struct command_result *json_invoice(struct command *cmd,
|
||||
p_req("msatoshi", param_msat_or_any, &msatoshi_val),
|
||||
p_req("label", param_label, &info->label),
|
||||
p_req("description", param_escaped_string, &desc_val),
|
||||
p_opt_def("expiry", param_u64, &expiry, 3600),
|
||||
p_opt_def("expiry", param_u64, &expiry, 3600*24*7),
|
||||
p_opt("fallbacks", param_array, &fallbacks),
|
||||
p_opt("preimage", param_tok, &preimagetok),
|
||||
p_opt("exposeprivatechannels", param_bool, &exposeprivate),
|
||||
|
||||
Reference in New Issue
Block a user