Skip to content

Commit 43e59d7

Browse files
invoice: pay an rgb invoice
Signed-off-by: Vincenzo Palazzo <[email protected]>
1 parent ccbf662 commit 43e59d7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

plugins/pay.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,8 @@ static struct command_result *json_pay(struct command *cmd,
10651065
/* FIXME: parameter should be invstring now */
10661066
p_req("bolt11", param_invstring, &b11str),
10671067
p_opt("amount_msat", param_msat, &msat),
1068+
// FIXME(vincenzopalazzo): adds the rgb_amount value that
1069+
// can be (maybe) optional inside the invoice.
10681070
p_opt("label", param_string, &label),
10691071
p_opt_def("riskfactor", param_millionths,
10701072
&riskfactor_millionths, 10000000),
@@ -1122,6 +1124,7 @@ static struct command_result *json_pay(struct command *cmd,
11221124
"Invalid bolt11:"
11231125
" sets feature var_onion with no secret");
11241126
} else {
1127+
// FIXME(vincenzopalazzo): fails if it is an bolt12 offer.
11251128
b12 = invoice_decode(tmpctx, b11str, strlen(b11str),
11261129
plugin_feature_set(cmd->plugin),
11271130
chainparams, &b12_fail);

0 commit comments

Comments
 (0)