libplugin-pay: fix default CLTV.

This was changed recently, but without a bolt quote, we didn't find
this.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-08-31 13:05:42 +09:30
parent 74e960c20b
commit 0c7d04bd98

View File

@@ -7,7 +7,12 @@
#include <common/type_to_string.h>
#include <plugins/libplugin-pay.h>
#define DEFAULT_FINAL_CLTV_DELTA 9
/* BOLT #11:
* * `c` (24): `data_length` variable.
* `min_final_cltv_expiry` to use for the last HTLC in the route.
* Default is 18 if not specified.
*/
#define DEFAULT_FINAL_CLTV_DELTA 18
struct payment *payment_new(tal_t *ctx, struct command *cmd,
struct payment *parent,