diff --git a/packages/app/config/iris.json b/packages/app/config/iris.json index 591743c5..b1519d4b 100644 --- a/packages/app/config/iris.json +++ b/packages/app/config/iris.json @@ -35,6 +35,7 @@ "eventLinkPrefix": "note", "profileLinkPrefix": "npub", "defaultRelays": { + "ws://localhost:7777": { "read": true, "write": true }, "wss://relay.snort.social/": { "read": true, "write": true }, "wss://nostr.wine/": { "read": true, "write": false }, "wss://eden.nostr.land/": { "read": true, "write": false }, diff --git a/packages/system/src/connection.ts b/packages/system/src/connection.ts index 8536690f..c1fc4cef 100644 --- a/packages/system/src/connection.ts +++ b/packages/system/src/connection.ts @@ -9,8 +9,6 @@ import { ConnectionStats } from "./connection-stats"; import { NostrEvent, ReqCommand, ReqFilter, TaggedNostrEvent, u256 } from "./nostr"; import { RelayInfo } from "./relay-info"; import EventKind from "./event-kind"; -import { getHex64 } from "./utils"; -import inMemoryDB from "./InMemoryDB"; /** * Relay settings @@ -202,11 +200,13 @@ export class Connection extends EventEmitter { this.#activity = unixNowMs(); if ((e.data as string).length > 0) { // skip message processing if we've already seen it + /* there's some problem in retrieval from inMemoryDB? try disabling for now const msgId = getHex64(e.data as string, "id"); if (inMemoryDB.has(msgId)) { console.log("already have"); return; } + */ const msg = JSON.parse(e.data as string) as Array; const tag = msg[0] as string;