bolt11: don't include prefix when parsing invoices
This commit is contained in:
@@ -211,11 +211,11 @@ static int parse_invoice(struct cursor *cur, struct block *block) {
|
|||||||
const u8 *start, *end;
|
const u8 *start, *end;
|
||||||
char *fail;
|
char *fail;
|
||||||
struct bolt11 *bolt11;
|
struct bolt11 *bolt11;
|
||||||
start = cur->p;
|
|
||||||
|
|
||||||
// optional
|
// optional
|
||||||
parse_str(cur, "lightning:");
|
parse_str(cur, "lightning:");
|
||||||
|
|
||||||
|
start = cur->p;
|
||||||
|
|
||||||
if (!parse_str(cur, "lnbc"))
|
if (!parse_str(cur, "lnbc"))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user