diff --git a/packages/app/config/default.json b/packages/app/config/default.json index cd02a553..f0c779ee 100644 --- a/packages/app/config/default.json +++ b/packages/app/config/default.json @@ -20,6 +20,6 @@ "defaultRelays": { "wss://relay.snort.social/": { "read": true, "write": true }, "wss://nostr.wine/": { "read": true, "write": false }, - "wss://nos.lol/": { "read": true, "write": true } + "wss://eden.nostr.land/": { "read": true, "write": false } } } diff --git a/packages/app/config/iris.json b/packages/app/config/iris.json index 9ddd1c9b..49d54b10 100644 --- a/packages/app/config/iris.json +++ b/packages/app/config/iris.json @@ -19,6 +19,6 @@ "defaultRelays": { "wss://relay.snort.social/": { "read": true, "write": true }, "wss://nostr.wine/": { "read": true, "write": false }, - "wss://nos.lol/": { "read": true, "write": true } + "wss://eden.nostr.land/": { "read": true, "write": false } } } diff --git a/packages/app/src/Login/Functions.ts b/packages/app/src/Login/Functions.ts index 25da0bef..21a2bd42 100644 --- a/packages/app/src/Login/Functions.ts +++ b/packages/app/src/Login/Functions.ts @@ -12,7 +12,7 @@ import { unixNowMs } from "@snort/shared"; import * as secp from "@noble/curves/secp256k1"; import * as utils from "@noble/curves/abstract/utils"; -import { DefaultRelays, SnortPubKey } from "Const"; +import { SnortPubKey } from "Const"; import { LoginStore, UserPreferences, LoginSession, LoginSessionType, SnortAppData, Newest } from "Login"; import { generateBip39Entropy, entropyToPrivateKey } from "nip6"; import { bech32ToHex, dedupeById, getCountry, sanitizeRelayUrl, unwrap } from "SnortUtils"; @@ -93,13 +93,13 @@ export async function generateNewLogin( const ent = generateBip39Entropy(); const entropy = utils.bytesToHex(ent); const privateKey = entropyToPrivateKey(ent); - const newRelays = Object.fromEntries(DefaultRelays.entries()); + const newRelays = {} as Record; // Use current timezone info to determine approx location // use closest 5 relays const country = getCountry(); const api = new SnortApi(); - const closeRelays = await api.closeRelays(country.lat, country.lon, 10); + const closeRelays = await api.closeRelays(country.lat, country.lon, 20); for (const cr of closeRelays.sort((a, b) => (a.distance > b.distance ? 1 : -1)).filter(a => !a.is_paid)) { const rr = sanitizeRelayUrl(cr.url); if (rr) {