nip19: allow empty relays in nprofile and nevent

This commit is contained in:
William Casarin
2023-04-11 12:44:56 -07:00
parent e8d63768c1
commit b30d0c01db
2 changed files with 9 additions and 3 deletions

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) {