bolt11: don't include prefix when parsing invoices

This commit is contained in:
William Casarin
2022-12-19 22:28:58 -08:00
parent f351632440
commit 189b671108

View File

@@ -211,11 +211,11 @@ static int parse_invoice(struct cursor *cur, struct block *block) {
const u8 *start, *end;
char *fail;
struct bolt11 *bolt11;
start = cur->p;
// optional
parse_str(cur, "lightning:");
start = cur->p;
if (!parse_str(cur, "lnbc"))
return 0;