try disabling alreadyHave check
This commit is contained in:
@ -35,6 +35,7 @@
|
|||||||
"eventLinkPrefix": "note",
|
"eventLinkPrefix": "note",
|
||||||
"profileLinkPrefix": "npub",
|
"profileLinkPrefix": "npub",
|
||||||
"defaultRelays": {
|
"defaultRelays": {
|
||||||
|
"ws://localhost:7777": { "read": true, "write": true },
|
||||||
"wss://relay.snort.social/": { "read": true, "write": true },
|
"wss://relay.snort.social/": { "read": true, "write": true },
|
||||||
"wss://nostr.wine/": { "read": true, "write": false },
|
"wss://nostr.wine/": { "read": true, "write": false },
|
||||||
"wss://eden.nostr.land/": { "read": true, "write": false },
|
"wss://eden.nostr.land/": { "read": true, "write": false },
|
||||||
|
@ -9,8 +9,6 @@ import { ConnectionStats } from "./connection-stats";
|
|||||||
import { NostrEvent, ReqCommand, ReqFilter, TaggedNostrEvent, u256 } from "./nostr";
|
import { NostrEvent, ReqCommand, ReqFilter, TaggedNostrEvent, u256 } from "./nostr";
|
||||||
import { RelayInfo } from "./relay-info";
|
import { RelayInfo } from "./relay-info";
|
||||||
import EventKind from "./event-kind";
|
import EventKind from "./event-kind";
|
||||||
import { getHex64 } from "./utils";
|
|
||||||
import inMemoryDB from "./InMemoryDB";
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Relay settings
|
* Relay settings
|
||||||
@ -202,11 +200,13 @@ export class Connection extends EventEmitter<ConnectionEvents> {
|
|||||||
this.#activity = unixNowMs();
|
this.#activity = unixNowMs();
|
||||||
if ((e.data as string).length > 0) {
|
if ((e.data as string).length > 0) {
|
||||||
// skip message processing if we've already seen it
|
// 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");
|
const msgId = getHex64(e.data as string, "id");
|
||||||
if (inMemoryDB.has(msgId)) {
|
if (inMemoryDB.has(msgId)) {
|
||||||
console.log("already have");
|
console.log("already have");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
|
|
||||||
const msg = JSON.parse(e.data as string) as Array<string | NostrEvent | boolean>;
|
const msg = JSON.parse(e.data as string) as Array<string | NostrEvent | boolean>;
|
||||||
const tag = msg[0] as string;
|
const tag = msg[0] as string;
|
||||||
|
Reference in New Issue
Block a user