Detect nip29 properly before choosing smart path, more robust auth error checking

This commit is contained in:
Jon Staab
2025-11-04 16:14:32 -08:00
parent 6429f82829
commit 501ce8067d
12 changed files with 56 additions and 45 deletions
+1 -2
View File
@@ -62,11 +62,10 @@ export const mostlyRestrictedPolicy = (socket: Socket) => {
const pending = new Set<string>()
const updateStatus = () => {
const updateStatus = () =>
relaysMostlyRestricted.update(
restricted > total / 2 ? assoc(socket.url, error) : dissoc(socket.url),
)
}
const unsubscribers = [
on(socket, SocketEvent.Receive, (message: RelayMessage) => {