Browse Source

bolt11: don't include prefix when parsing invoices

profile-edit
William Casarin 2 years ago
parent
commit
189b671108
  1. 4
      damus-c/damus.c

4
damus-c/damus.c

@ -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;

Loading…
Cancel
Save