bolt11: parse lightning prefixes on lightning invoice
Changelog-Fixed: Parse lightning prefixes on lightning invoice
This commit is contained in:
@@ -213,6 +213,9 @@ static int parse_invoice(struct cursor *cur, struct block *block) {
|
||||
struct bolt11 *bolt11;
|
||||
start = cur->p;
|
||||
|
||||
// optional
|
||||
parse_str(cur, "lightning:");
|
||||
|
||||
if (!parse_str(cur, "lnbc"))
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user