From 501b6e6292aa6eb8b2fbf7b9f2fe7ca37debdfca Mon Sep 17 00:00:00 2001 From: Shroominic Date: Fri, 29 Aug 2025 12:22:35 -0300 Subject: [PATCH] fix provider discovery --- routstr/discovery.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routstr/discovery.py b/routstr/discovery.py index b04b106e..1a634cc2 100644 --- a/routstr/discovery.py +++ b/routstr/discovery.py @@ -107,8 +107,8 @@ def parse_provider_announcement(event: dict[str, Any]) -> dict[str, Any] | None: elif tag[0] == "d": d_tag = tag[1] - # Validate required fields - if not endpoint_url or not provider_name or not d_tag: + # Early validation only applies to legacy/other kinds, not NIP-91 + if kind != 38421 and (not endpoint_url or not provider_name or not d_tag): logger.warning( f"Invalid provider announcement - missing required tags: {event['id']}" )