damus

nostr ios client
git clone git://jb55.com/damus
Log | Files | Refs | README | LICENSE

commit 189b671108953d514e062172dafe5b36db6cadb7
parent f351632440e6cf0ffd4bc605138b25b97bda31c7
Author: William Casarin <jb55@jb55.com>
Date:   Mon, 19 Dec 2022 22:28:58 -0800

bolt11: don't include prefix when parsing invoices

Diffstat:
Mdamus-c/damus.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 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;