RelayUrl path and query issues #735
Labels
No labels
Blocked
Bug
Documentation
Duplicate
Enhancement
Good first issue
Help wanted
Idea
In progress
Invalid
Major feature set
Packaging
Question
Soon
UI/UX
Upstream
You're dreamin'
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nostr/gossip#735
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gossip currently treats every distinct RelayURL as a distinct relay. That means the following are seen as 3 different relays:
When gossip posts an event it may post it to all 3 of these relay urls (or in my case, 12, but I didn't want to clutter this issue).
When gossip fetches events it may connect to many of these relay urls.
Gossip cannot presume what the path or query mean. The meaning may be different across different relays.
Here are some problems with the current state of affairs:
ALTERNATIVE 1: Ignore path and query.
If we ignored path and query, then filter.nostr.wine would be seen as a single relay and the problems above would go away. However we would have new problems:
filter.nostr.wine is just an example.
I don't know what the right solution is, and I'm not working on fixing this until I've worked out what the right solution is.
https://github.com/nostr-protocol/nips/issues/1198
nostr-types added 'RelayOrigin', but we have not started any gossip code to use it yet.
I caved in and took fiatjaf's advice to just blacklist a few relays to deal with those relays proliferating paths.