mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 20:09:18 +01:00
renepay: refuse to pay BOLT12 invoice
We have not yet worked on supporting BOLT12 invoices, we better refuse to pay them until we do.
This commit is contained in:
parent
65efa2ab18
commit
b51acf6a31
1 changed files with 5 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue