nip19: allow empty relays in nprofile and nevent

This commit is contained in:
William Casarin committed 2023-04-11 12:45:45 -07:00
1 parent e8d63768c1
commit b30d0c01db
2 files changed
+9 -3

No files matched your search

+1 -1
View File
@@ -135,7 +135,7 @@ static int tlvs_to_relays(struct nostr_tlvs *tlvs, struct relays *relays) {
str->end = (const char*)(tlv->value + tlv->len);
}
return relays->num_relays > 0;
return 1;
}
static int parse_nostr_bech32_nevent(struct cursor *cur, struct bech32_nevent *nevent) {