Skip to content

Commit

Permalink
renepay: refuse to pay BOLT12 invoice
Browse files Browse the repository at this point in the history
We have not yet worked on supporting BOLT12 invoices,
we better refuse to pay them until we do.
  • Loading branch information
Lagrang3 authored and cdecker committed Mar 7, 2024
1 parent 65efa2a commit b51acf6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/renepay/pay.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b51acf6

Please sign in to comment.