Skip to content

Commit ad19869

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

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
@@ -1073,6 +1073,8 @@ static struct command_result *json_pay(struct command *cmd,
10731073
/* FIXME: parameter should be invstring now */
10741074
p_req("bolt11", param_invstring, &b11str),
10751075
p_opt("amount_msat", param_msat, &msat),
1076+
// FIXME(vincenzopalazzo): adds the rgb_amount value that
1077+
// can be (maybe) optional inside the invoice.
10761078
p_opt("label", param_string, &label),
10771079
p_opt_def("riskfactor", param_millionths,
10781080
&riskfactor_millionths, 10000000),
@@ -1130,6 +1132,7 @@ static struct command_result *json_pay(struct command *cmd,
11301132
"Invalid bolt11:"
11311133
" sets feature var_onion with no secret");
11321134
} else {
1135+
// FIXME(vincenzopalazzo): fails if it is an bolt12 offer.
11331136
b12 = invoice_decode(tmpctx, b11str, strlen(b11str),
11341137
plugin_feature_set(cmd->plugin),
11351138
chainparams, &b12_fail);

0 commit comments

Comments
 (0)