Myzel394 / locus

[DISCONTINUED / NO LONGER MAINTAINED] Share your location end-to-end encrypted on decentralized servers using Nostr.
GNU General Public License v3.0
222 stars 9 forks source link

[FEATURE] Sorting the Nostr Relays List #107

Closed Korb closed 11 months ago

Korb commented 1 year ago

Is your feature request related to a problem? Please describe. Currently, the list of Nostr Relays is an unsorted sequence:

(possible OCR errors)

Describe the solution you'd like I propose to sort this list alphabetically. Or, better, like Proxy servers in Telegram clients - in ascending ping. Moreover, currently inactive Relays should be displayed last, at the end of the list.

Myzel394 commented 1 year ago

The list is shuffled each time its loaded to not favor some relays. However, some relays seem to not properly work. Because of that, I was thinking about adding like a social credit system for relays to figure out which relays are working and which aren't.

Or, better, like Proxy servers in Telegram clients - in ascending ping

We'd have to ping each relay, which would be a massive amount of network requests. I don't like to do that.

Moreover, currently inactive Relays should be displayed last, at the end of the list.

Originally, only active relays were shown. However, it looks like the api for that is down currently. All relays are shown instead at the moment