From 189b671108953d514e062172dafe5b36db6cadb7 Mon Sep 17 00:00:00 2001 From: William Casarin Date: Mon, 19 Dec 2022 22:28:58 -0800 Subject: [PATCH] bolt11: don't include prefix when parsing invoices --- damus-c/damus.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/damus-c/damus.c b/damus-c/damus.c index da1980e..48a2fbe 100644 --- a/damus-c/damus.c +++ b/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;