We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
9
1 parent 4e7ba96 commit d5946e6Copy full SHA for d5946e6
devtools/bolt11-cli.c
@@ -142,9 +142,10 @@ static void encode(const tal_t *ctx,
142
b11->timestamp = strtoul(val, &endp, 10);
143
if (!b11->timestamp || *endp != '\0')
144
errx(ERROR_USAGE, "Invalid amount %s", val);
145
- /* Allow raw numbered fields */
+ /* Allow raw numbered fields (except 9, that's below) */
146
} else if ((fieldnum = strtoul(fname, &endp, 10)) != 0
147
- && fieldnum < 256) {
+ && fieldnum < 256
148
+ && fieldnum != 9) {
149
struct bolt11_field *extra = tal(b11, struct bolt11_field);
150
extra->tag = fieldnum;
151
extra->data = tal_hexdata(extra, val, strlen(val));
0 commit comments