From cfb9c4adfdbf2b680f200b1d50a45471c1c14945 Mon Sep 17 00:00:00 2001 From: Martti Malmi Date: Fri, 2 Feb 2024 08:41:47 +0200 Subject: [PATCH] send REQ with ids_only unchanged --- packages/system/src/connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/system/src/connection.ts b/packages/system/src/connection.ts index dd40c40b..4f50d1a6 100644 --- a/packages/system/src/connection.ts +++ b/packages/system/src/connection.ts @@ -28,7 +28,7 @@ interface ConnectionEvents { disconnect: (code: number) => void; auth: (challenge: string, relay: string, cb: (ev: NostrEvent) => void) => void; notice: (msg: string) => void; - have: (sub: string, ids: u256) => void; // NIP-114 + have: (sub: string, id: u256) => void; // NIP-114 unknownMessage: (obj: Array) => void; } @@ -409,7 +409,7 @@ export class Connection extends EventEmitter { const neg = new NegentropyFlow(id, this, eventSet, newFilters); neg.once("finish", filters => { if (filters.length > 0) { - this.queueReq(["REQ", cmd[1], ...newFilters], item.cb); + this.queueReq(["REQ", cmd[1], ...filters], item.cb); } }); neg.once("error", () => {