try disabling alreadyHave check
This commit is contained in:
@ -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<ConnectionEvents> {
|
||||
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<string | NostrEvent | boolean>;
|
||||
const tag = msg[0] as string;
|
||||
|
Reference in New Issue
Block a user