bolt11: parse lightning prefixes on lightning invoice

Changelog-Fixed: Parse lightning prefixes on lightning invoice
This commit is contained in:
William Casarin
2022-12-19 22:24:39 -08:00
parent 69ccc214a6
commit f351632440
2 changed files with 21 additions and 0 deletions

View File

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