From b51acf6a31c4f63ddcf63a3ef54b40b67e204a58 Mon Sep 17 00:00:00 2001 From: Lagrang3 Date: Thu, 7 Mar 2024 08:33:36 +0100 Subject: [PATCH] renepay: refuse to pay BOLT12 invoice We have not yet worked on supporting BOLT12 invoices, we better refuse to pay them until we do. --- plugins/renepay/pay.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/renepay/pay.c b/plugins/renepay/pay.c index 03d60e15dce2..f4320d63ce5f 100644 --- a/plugins/renepay/pay.c +++ b/plugins/renepay/pay.c @@ -932,6 +932,11 @@ static struct command_result *json_pay(struct command *cmd, routes = cast_const2(const struct route_info **, b11->routes); } else { + /* FIXME We have not yet added support for BOLT12 invoices, + * refuse to pay. */ + return command_fail(cmd, JSONRPC2_INVALID_PARAMS, + "BOLT12 invoices are not yet supported."); + // TODO(eduardo): check this, compare with `pay` const struct tlv_invoice *b12; char *fail;